🐛 Fix some issues with change position modal

This commit is contained in:
Meierschlumpf
2022-12-19 19:55:42 +01:00
parent 25fd3a1594
commit f240d29f7e
8 changed files with 31 additions and 39 deletions

View File

@@ -58,7 +58,7 @@ const useDashDotStorage = () => {
'dashdot/storage',
{
configName,
url: config?.widgets.dashDot?.properties.url,
url: config?.widgets.find((x) => x.id === 'dashdot')?.properties.url,
},
],
queryFn: () => fetchDashDotStorageLoad(configName),
@@ -66,7 +66,6 @@ const useDashDotStorage = () => {
};
async function fetchDashDotStorageLoad(configName: string | undefined) {
console.log(`storage request: ${configName}`);
if (!configName) throw new Error('configName is undefined');
return (await (
await axios.get('/api/modules/dashdot/storage', { params: { configName } })