fix: default conferencing app not showing the correct value after updated (#7589)
* fix: edge case * feat: add overflow * fix: invalidate cache
This commit is contained in:
1 parent
e836a042e9
commit
0ee3b26ca8
3 files changed
+15
-4
No files matched your search
@@ -69,7 +69,10 @@ const ConferencingLayout = () => {
|
||||
}, []);
|
||||
|
||||
const updateDefaultAppMutation = trpc.viewer.updateUserDefaultConferencingApp.useMutation({
|
||||
onSuccess: onSuccessCallback,
|
||||
onSuccess: async () => {
|
||||
await utils.viewer.getUsersDefaultConferencingApp.invalidate();
|
||||
onSuccessCallback();
|
||||
},
|
||||
onError: (error) => {
|
||||
showToast(`Error: ${error.message}`, "error");
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user