Fix .trim() on null in conformance cases getter and add fallback returns
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -182,7 +182,7 @@ export const useConformanceStore = defineStore("conformanceStore", {
|
|||||||
? abbreviateNumber(new Decimal(v.toFixed(2)))
|
? abbreviateNumber(new Decimal(v.toFixed(2)))
|
||||||
: null,
|
: null,
|
||||||
);
|
);
|
||||||
copy.value = copy.value.map((v) => v.trim()).join(", ");
|
copy.value = copy.value.map((v) => (v ?? "").trim()).join(", ");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -218,6 +218,7 @@ export const useConformanceStore = defineStore("conformanceStore", {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return [];
|
||||||
},
|
},
|
||||||
loopTraces: (state) => {
|
loopTraces: (state) => {
|
||||||
return state.allLoopTraces;
|
return state.allLoopTraces;
|
||||||
@@ -256,6 +257,7 @@ export const useConformanceStore = defineStore("conformanceStore", {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
return [];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
|||||||
Reference in New Issue
Block a user