Fix view creation updating all view names

This commit is contained in:
Charles Bochet 2023-11-24 16:43:23 +01:00
parent 8212606043
commit d3615ba0d3

View File

@ -397,12 +397,17 @@ export const useView = (props?: UseViewProps) => {
if (viewEditMode === 'create' && name) {
await createView(name);
}
await internalUpdateView({
...currentView,
name,
});
// Temporary to force refetch
await internalUpdateView({
...currentView,
});
} else {
await internalUpdateView({
...currentView,
name,
});
}
},
[createView, internalUpdateView, scopeId],
);