Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: shared space query invalidation #780

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Expand Up @@ -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

View workflow job for this annotation

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

View workflow job for this annotation

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();
};

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