removed warnings and errors in ObjektkatalogApi.js

This commit is contained in:
Robert Nasarek 2022-09-19 23:10:53 +02:00
parent d27e3ecf01
commit 11b0d9fb6c

View file

@ -39,6 +39,7 @@ class ObjektkatalogApi {
return returnedResponse return returnedResponse
}).catch((error) => { }).catch((error) => {
// Error while fetch. // Error while fetch.
console.log(error)
return {status: 503}; return {status: 503};
}); });
@ -119,7 +120,7 @@ class ObjektkatalogApi {
httpStatus: 500, httpStatus: 500,
} }
this.visibility = false this.visibility = false
return [this.receivedData, this.visibility] return this.receivedData
} }
// Bilder // Bilder
@ -136,7 +137,7 @@ class ObjektkatalogApi {
// Default date of today // Default date of today
let today = new Date() let today = new Date()
let todayFormat = today.getFullYear() + '-' + (String(today.getMonth() + 1).padStart(2, '0')) + '-' + String(today.getDate()).padStart(2, '0'); let todayFormat = today.getFullYear() + '-' + (String(today.getMonth() + 1).padStart(2, '0')) + '-' + String(today.getDate()).padStart(2, '0');
;
// Inventarnummer // Inventarnummer
let inventarnummer; let inventarnummer;