fix pinned items not showing

This commit is contained in:
ammarahm-ed
2020-04-22 11:22:20 +05:00
parent 6134ec842a
commit bc4a7b0fcb
3 changed files with 4 additions and 4 deletions

View File

@@ -127,10 +127,10 @@ const SimpleList = ({
? 155 - insets.top
: 155 - 60 - insets.top,
}}>
{pinned && pinned.notebooks && pinned.notebooks.length > 0 ? (
{pinned && pinned.length > 0 ? (
<>
<FlatList
data={pinned.notebooks}
data={pinned}
keyExtractor={(item, index) => item.id.toString()}
renderItem={({item, index}) =>
item.type === 'notebook' ? (