Skip to content

Commit 4b8f643

Browse files
committed
refactor(ProcessWorkflow): simplify type conversion in handleToggleChange
1 parent a694df2 commit 4b8f643

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/ProcessWorkflow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function startCompute() {
7777
}
7878
7979
function handleToggleChange(value: number | string) {
80-
const numValue = typeof value === 'string' ? parseInt(value, 10) : value;
80+
const numValue = Number(value);
8181
const shouldShowOriginal = numValue === 0;
8282
if (shouldShowOriginal !== showingOriginal.value) {
8383
processStore.togglePreview();

0 commit comments

Comments
 (0)