sonar 12 left
This commit is contained in:
@@ -267,7 +267,11 @@ export default defineStore('conformanceStore', {
|
||||
}
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
!getRouteFile ? this.allConformanceTempReportData = response.data : this.allRouteFile = response.data.file;
|
||||
if(!getRouteFile) {
|
||||
this.allConformanceTempReportData = response.data
|
||||
} else {
|
||||
this.allRouteFile = response.data.file;
|
||||
}
|
||||
} catch(error) {
|
||||
apiError(error, 'Failed to Get the Temporary Log Conformance Report.');
|
||||
}
|
||||
@@ -337,7 +341,10 @@ export default defineStore('conformanceStore', {
|
||||
this.allCases = response.data.cases;
|
||||
return response.data.cases;
|
||||
} catch(error) {
|
||||
if(error.response.status === 404) return this.infinite404 = 404;
|
||||
if(error.response.status === 404) {
|
||||
this.infinite404 = 404;
|
||||
return;
|
||||
}
|
||||
apiError(error, 'Failed to Get the detail of a temporary log conformance issue.');
|
||||
};
|
||||
},
|
||||
@@ -390,7 +397,10 @@ export default defineStore('conformanceStore', {
|
||||
this.allLoopCases = response.data.cases;
|
||||
return response.data.cases;
|
||||
} catch(error) {
|
||||
if(error.response.status === 404) return this.infinite404 = 404;
|
||||
if(error.response.status === 404) {
|
||||
this.infinite404 = 404;
|
||||
return;
|
||||
}
|
||||
apiError(error, 'Failed to Get the detail of a temporary log conformance loop.');
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user