We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a694df2 commit 58f56b9Copy full SHA for 58f56b9
1 file changed
src/components/ProcessWorkflow.vue
@@ -76,9 +76,8 @@ function startCompute() {
76
processStore.startProcess(id, props.algorithm);
77
}
78
79
-function handleToggleChange(value: number | string) {
80
- const numValue = typeof value === 'string' ? parseInt(value, 10) : value;
81
- const shouldShowOriginal = numValue === 0;
+function handleToggleChange(value: number) {
+ const shouldShowOriginal = value === 0;
82
if (shouldShowOriginal !== showingOriginal.value) {
83
processStore.togglePreview();
84
0 commit comments