Save models before emitting status change

This commit is contained in:
Cohee 2024-09-15 18:14:40 +03:00
parent d08f964c2d
commit 44cc81fa73
1 changed files with 3 additions and 3 deletions

View File

@ -3338,12 +3338,12 @@ async function getStatusOpen() {
const responseData = await response.json();
if (!('error' in responseData)) {
setOnlineStatus('Valid');
}
if ('data' in responseData && Array.isArray(responseData.data)) {
saveModelList(responseData.data);
}
if (!('error' in responseData)) {
setOnlineStatus('Valid');
}
} catch (error) {
console.error(error);