Compare commits

...

1 Commits

Author SHA1 Message Date
Maxi Quoß 469d480988 fix devices would not load for normal users 2023-03-13 09:23:54 +01:00
+6 -2
View File
@@ -81,8 +81,12 @@
}
async function getSettingsPrivateAndDevices() {
const settingsPrivateRes = await $pocketbase.collection('settings_private').getList(1, 1);
settings_private.set(settingsPrivateRes.items[0]);
if (!$pocketbase.authStore.model?.collectionName === 'users') {
const settingsPrivateRes = await $pocketbase
.collection('settings_private')
.getList(1, 1);
settings_private.set(settingsPrivateRes.items[0]);
}
let tempDevices = {};
const devicesRes = await $pocketbase.collection('devices').getFullList(200, {