Save models before emitting status change
This commit is contained in:
parent
d08f964c2d
commit
44cc81fa73
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue