diff options
| author | Dhravya <[email protected]> | 2024-07-16 18:56:51 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-07-16 18:56:51 -0500 |
| commit | 58d590160d2fa8535552662997caafe4d7ae0bda (patch) | |
| tree | 64d8f284098352bf4ebe0bd471c662837f20b75e /apps | |
| parent | added breadcrumbs for easier navigation on web (diff) | |
| download | supermemory-58d590160d2fa8535552662997caafe4d7ae0bda.tar.xz supermemory-58d590160d2fa8535552662997caafe4d7ae0bda.zip | |
breadcrumbs
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/app/(dash)/menu.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/app/(dash)/menu.tsx b/apps/web/app/(dash)/menu.tsx index c807c579..5e05d358 100644 --- a/apps/web/app/(dash)/menu.tsx +++ b/apps/web/app/(dash)/menu.tsx @@ -240,7 +240,7 @@ function Menu() { const creationTask = await createSpace(spaceName); if (creationTask.success && creationTask.data) { toast.success("Space created " + creationTask.data); - setSpaces?.((prev) => [ + setSpaces((prev) => [ ...prev, { name: spaceName, @@ -265,7 +265,7 @@ function Menu() { <div> {selectedSpaces.length > 0 && ( <div className="flex flex-row flex-wrap gap-0.5 h-min"> - {selectedSpaces.map((x, idx) => ( + {[...new Set(selectedSpaces)].map((x, idx) => ( <button key={x} type="button" |