fix: fixed issue renaming workspaces and creating collections

This commit is contained in:
Anusree Subash 2022-10-22 16:03:26 +05:30
parent ac4e3a9f3d
commit 41d9bbd2d8
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ const CreateOrAddCollection = () => {
return (
<div className="px-2 mt-4 text-gray-600">
{createCollectionModalOpen ? <CreateCollection handleCancel={() => setCreateCollectionModalOpen(false)} handleConfirm={handleCreateCollection} /> : null}
{createCollectionModalOpen ? <CreateCollection onClose={() => setCreateCollectionModalOpen(false)} handleConfirm={handleCreateCollection} /> : null}
{addCollectionToWSModalOpen ? (
<SelectCollection title="Add Collection to Workspace" onClose={() => setAddCollectionToWSModalOpen(false)} onSelect={handleAddCollectionToWorkspace} />

View File

@ -18,7 +18,7 @@ const WorkspaceSelector = () => {
useEffect(() => {
setActiveWorkspace(workspaces.find((workspace) => workspace.uid === activeWorkspaceUid));
}, [activeWorkspaceUid]);
}, [activeWorkspaceUid, workspaces]);
const Icon = forwardRef((props, ref) => {
return (