diff options
author | Anton Tananaev <anton@traccar.org> | 2023-12-11 20:41:31 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-12-11 20:41:31 -0800 |
commit | 7d607dbc8f2f5636dd1319ff018add3265c923aa (patch) | |
tree | aca67555548e463126a01d1d73314ebd975ae151 /modern/src/settings/CalendarPage.jsx | |
parent | 3b38142f4ef581c76ec089d430cda86337609bc1 (diff) | |
download | trackermap-web-7d607dbc8f2f5636dd1319ff018add3265c923aa.tar.gz trackermap-web-7d607dbc8f2f5636dd1319ff018add3265c923aa.tar.bz2 trackermap-web-7d607dbc8f2f5636dd1319ff018add3265c923aa.zip |
Fix store refresh
Diffstat (limited to 'modern/src/settings/CalendarPage.jsx')
-rw-r--r-- | modern/src/settings/CalendarPage.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/CalendarPage.jsx b/modern/src/settings/CalendarPage.jsx index 099858a3..b7dcdd04 100644 --- a/modern/src/settings/CalendarPage.jsx +++ b/modern/src/settings/CalendarPage.jsx @@ -99,7 +99,7 @@ const CalendarPage = () => { const onItemSaved = useCatch(async () => { const response = await fetch('/api/calendars'); if (response.ok) { - dispatch(calendarsActions.update(await response.json())); + dispatch(calendarsActions.refresh(await response.json())); } else { throw Error(await response.text()); } |