Skip to content

Commit 22ca396

Browse files
committed
Fetch data system after creation
1 parent a502f6b commit 22ca396

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

specifyweb/frontend/js_src/lib/components/Toolbar/SystemConfigTool.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export function SystemConfigurationTool(): JSX.Element | null {
5555
Accept: 'application/json',
5656
},
5757
body: data,
58-
}).then(() => {
59-
closeNewResource();
60-
window.location.reload();
61-
});
58+
})
59+
.then(() => fetchAllSystemData)
60+
.then(setAllInfo)
61+
.then(() => closeNewResource());
6262
};
6363

6464
const renderHierarchy = (

0 commit comments

Comments
 (0)