Bugfix in redux diff management
parent
3986ade2c8
commit
51140602ac
|
@ -27,6 +27,7 @@ const ConfigList = ({ diff, isLoading }) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (isEmpty(diff)) {
|
||||
setRows([]);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,8 +50,7 @@ export function importAllConfig() {
|
|||
dispatch(setLoadingState(true));
|
||||
try {
|
||||
const { message } = await request('/config-sync/import', { method: 'GET' });
|
||||
dispatch(setFileConfigInState(Map({})));
|
||||
dispatch(setDatabaseConfigInState(Map({})));
|
||||
dispatch(setConfigDiffInState(Map({})));
|
||||
|
||||
strapi.notification.success(message);
|
||||
dispatch(setLoadingState(false));
|
||||
|
|
Loading…
Reference in New Issue