fix: Invalidate user list cache on company creation and refresh page on popup creation
All checks were successful
Staging Build / build (push) Successful in 2m44s

This commit is contained in:
DanielS
2026-06-25 02:37:45 +02:00
parent b537ca50cf
commit 7cad819df8
3 changed files with 8 additions and 2 deletions

View File

@@ -286,6 +286,7 @@ export function UserDialog({ companies }: UserDialogProps) {
field.onChange(created.id)
setShowNewCompanyInput(false)
setNewCompanyName('')
router.refresh()
}
} catch (err) {
console.error('Failed to create company:', err)