ctx dep added to addons hooks

This commit is contained in:
nklhrstv 2022-07-11 13:47:11 +03:00
parent 09dfeb1d42
commit 064bae9a58
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ const useInstalledAddons = (urlParams) => {
};
}
}, [urlParams]);
return useModelState({ model: 'installed_addons', action });
return useModelState({ model: 'installed_addons', action, deps: ['ctx'] });
};
module.exports = useInstalledAddons;

View file

@ -29,7 +29,7 @@ const useRemoteAddons = (urlParams) => {
};
}
}, [urlParams]);
return useModelState({ model: 'remote_addons', action });
return useModelState({ model: 'remote_addons', action, deps: ['ctx'] });
};
module.exports = useRemoteAddons;