Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ const ListJSObjects = () => {
px="spaces-3"
py="spaces-3"
>
{(!itemGroups || itemGroups.length === 0) && <BlankState />}

{itemGroups && itemGroups.length > 0 ? (
<SearchAndAdd
onAdd={openAddJS}
Expand Down Expand Up @@ -119,8 +121,6 @@ const ListJSObjects = () => {
) : null}
</Flex>
</FilesContextProvider>

{(!itemGroups || itemGroups.length === 0) && <BlankState />}
</JSContainer>
);
};
Expand Down
4 changes: 2 additions & 2 deletions app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const ListQuery = () => {
px="spaces-3"
py="spaces-3"
>
{Object.keys(itemGroups).length === 0 && <BlankState />}

{itemGroups.length > 0 ? (
<SearchAndAdd
onAdd={openAddQuery}
Expand Down Expand Up @@ -102,8 +104,6 @@ const ListQuery = () => {
/>
) : null}
</Flex>

{Object.keys(itemGroups).length === 0 && <BlankState />}
</Flex>
);
};
Expand Down