npm update, cleaned code

This commit is contained in:
2024-09-19 09:39:21 +02:00
parent 60a67f7afc
commit 835b6bcc3a
5 changed files with 110 additions and 118 deletions

View File

@ -27,11 +27,11 @@ export const useAssetStore = defineStore('assets', {
.then((response) => response.json())
.then((assets) => {
this.setAssets(assets)
successCallback();
successCallback()
return true
})
.catch((error) => {
errorCallback();
errorCallback()
console.error('Error fetching assets:', error)
return false
})