Skip to content

Commit b6c7589

Browse files
committed
fix: sync OrganisationStore after project updates for navbar refresh
Call AppActions.refreshOrganisation() after project updates to ensure the legacy OrganisationStore stays in sync with RTK Query cache. This fixes the navbar not updating when project name changes, which was causing the E2E test (project-test.ts) to fail.
1 parent e7e275a commit b6c7589

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/web/components/pages/project-settings/hooks/useUpdateProjectWithToast.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export const useUpdateProjectWithToast = () => {
2323
id: String(projectId),
2424
}).unwrap()
2525
toast(options?.successMessage || 'Setting updated')
26+
// Refresh OrganisationStore to update navbar and other components
27+
// that rely on the legacy store
28+
AppActions.refreshOrganisation()
2629
} catch (error) {
2730
toast(
2831
options?.errorMessage ||

0 commit comments

Comments
 (0)