Skip to content

fix: shared space query invalidation #780

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -98,7 +98,11 @@
spaceDescription: values.description,
spaceColor: values.color ?? 'cyan',
spaceType: values.type
}).catch(() => null);
})
.then(() => {
platform.useUtils().spaces.getOrgMemberSpaces.invalidate();

Check failure on line 103 in apps/web/src/app/[orgShortcode]/_components/new-space-modal.tsx

GitHub Actions / autofix

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator

Check failure on line 103 in apps/web/src/app/[orgShortcode]/_components/new-space-modal.tsx

GitHub Actions / Check and Build

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
})
.catch(() => null);
form.reset();
};

Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ function SpaceItem({
<DotsThree />
</Button>
{/* </DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuContent>
TODO: Add in with the notifications
<DropdownMenuSub>
<DropdownMenuSubTrigger>Notifications</DropdownMenuSubTrigger>
@@ -154,7 +154,7 @@ function SpaceItem({
</DropdownMenuRadioGroup>
</DropdownMenuSubContent>
</DropdownMenuPortal>
</DropdownMenuSub>
</DropdownMenuSub>
<DropdownMenuSeparator />
<DropdownMenuItem
onSelect={() => {
Loading