Skip to content

Commit

Permalink
fix: shared space query invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
SySagar committed Sep 15, 2024
1 parent ee35c84 commit 5f4a0a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export function NewSpaceModal() {
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

0 comments on commit 5f4a0a3

Please sign in to comment.