Skip to content

Commit

Permalink
fix: dataset select cannot refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
c121914yu committed Oct 30, 2024
1 parent 6939899 commit 6d4ff47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions projects/app/src/pages/api/core/app/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy

return {
teamId,
...(type && Array.isArray(type) && { type: { $in: type } }),
...(type && { type }),
...(type && (Array.isArray(type) ? { type: { $in: type } } : { type })),
...parseParentIdInMongo(parentId)
};
})();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ const SettingQuotePrompt = (props: RenderInputProps) => {
{isOpen && <EditModal {...props} onClose={onClose} />}
</>
);
}, [isOpen, onClose, onOpen, t]);
}, [isOpen, onClose, onOpen, props, t]);

return Render;
};
Expand Down
3 changes: 2 additions & 1 deletion projects/app/src/pages/dataset/list/component/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,15 @@ function List() {
</HStack>
)}
<PermissionIconText
flexShrink={0}
private={dataset.private}
iconColor="myGray.400"
color={'myGray.500'}
/>
</HStack>

<HStack>
{isPc && (
{isPc && dataset.type !== DatasetTypeEnum.folder && (
<HStack spacing={1} className="time">
<Avatar src={dataset.vectorModel.avatar} w={'0.85rem'} />
<Box color={'myGray.500'} fontSize={'mini'}>
Expand Down

0 comments on commit 6d4ff47

Please sign in to comment.