sonar low

This commit is contained in:
Cindy Chang
2024-07-26 10:48:38 +08:00
parent 2ca4fdd0c6
commit a5f271ccc8
7 changed files with 6 additions and 10 deletions

View File

@@ -125,11 +125,12 @@ export default defineStore('conformanceStore', {
c.completed_at = moment(c.completed_at).format('YYYY/MM/DD HH:mm');
c.facets.map(fac => {
switch(fac.type) {
case 'dummy': //sonar-qube
case 'duration-list':
fac.value = fac.value.map(v => v !== null ? abbreviateNumber(new Decimal(v.toFixed(2))) : null);
fac.value = (fac.value).map(v => v = v.trim()).join(', ');
break;
default:
default:
break;
};
return fac;

View File

@@ -277,7 +277,6 @@ export default defineStore('filesStore', {
break;
}
try {
const response = await axios.delete(api);
await this.fetchAllFiles();
await deleteSuccess();
} catch(error) {
@@ -296,7 +295,6 @@ export default defineStore('filesStore', {
loading.isLoading = true;
api = `/api/deletion/${id}`;
try {
const response = await axios.delete(api);
} catch(error) {
apiError(error, 'Failed to Remove a Deletion Record.')
} finally {