Fix variable redeclaration error in system-settings.vue
This commit is contained in:
parent
94472f1b49
commit
4a9bceb4c8
@ -54,15 +54,15 @@ export default {
|
||||
async reload() {
|
||||
// Load verification models
|
||||
try {
|
||||
var r = await this.$root.api_get_all("/api/v1/verification-model/");
|
||||
this.verification_models = r;
|
||||
const models = await this.$root.api_get_all("/api/v1/verification-model/");
|
||||
this.verification_models = models;
|
||||
} catch (e) {
|
||||
this.verification_models = [];
|
||||
}
|
||||
|
||||
// Load default verification model - treat 404 as empty
|
||||
try {
|
||||
var r = await this.$root.api_get("/api/v1/global-config/?name=default_verification_model");
|
||||
const r = await this.$root.api_get("/api/v1/global-config/?name=default_verification_model");
|
||||
this.default_verification_model_id = r.data.value || '';
|
||||
} catch (e) {
|
||||
// 404 or any other error - treat as empty/default
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user