mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 19:41:09 +10:00
Allow creation of space
* other fixes and cleanups
This commit is contained in:
@ -58,6 +58,7 @@ export default function WorkspaceNameForm() {
|
||||
label="Name"
|
||||
placeholder="e.g ACME"
|
||||
variant="filled"
|
||||
readOnly={!isAdmin}
|
||||
{...form.getInputProps("name")}
|
||||
/>
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ export function useCreateInvitationMutation() {
|
||||
onSuccess: (data, variables) => {
|
||||
notifications.show({ message: "Invitation sent" });
|
||||
// TODO: mutate cache
|
||||
queryClient.invalidateQueries({
|
||||
queryClient.refetchQueries({
|
||||
queryKey: ["invitations"],
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user