forked from extern/bruno
fix: fixed issue renaming workspaces and creating collections (#40)
This commit is contained in:
parent
ac4e3a9f3d
commit
0cde789697
@ -43,7 +43,7 @@ const CreateOrAddCollection = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="px-2 mt-4 text-gray-600">
|
<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 ? (
|
{addCollectionToWSModalOpen ? (
|
||||||
<SelectCollection title="Add Collection to Workspace" onClose={() => setAddCollectionToWSModalOpen(false)} onSelect={handleAddCollectionToWorkspace} />
|
<SelectCollection title="Add Collection to Workspace" onClose={() => setAddCollectionToWSModalOpen(false)} onSelect={handleAddCollectionToWorkspace} />
|
||||||
|
@ -18,7 +18,7 @@ const WorkspaceSelector = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setActiveWorkspace(workspaces.find((workspace) => workspace.uid === activeWorkspaceUid));
|
setActiveWorkspace(workspaces.find((workspace) => workspace.uid === activeWorkspaceUid));
|
||||||
}, [activeWorkspaceUid]);
|
}, [activeWorkspaceUid, workspaces]);
|
||||||
|
|
||||||
const Icon = forwardRef((props, ref) => {
|
const Icon = forwardRef((props, ref) => {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user