Skip to content

Commit c6e0dbc

Browse files
committed
chore: ignore error that comes from when user tries to paste something strange
1 parent d53d08a commit c6e0dbc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

apps/app/src/react/api/clipboard/clipboard.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ export function setupClipboard(context: ClipBoardContext): void {
6767
}
6868
}
6969
})
70-
.catch(context.handleError)
70+
.catch((error) => {
71+
if (`${error}`.match(/no valid data/i)) {
72+
// This is a user error, not something we need to handle.
73+
return
74+
}
75+
context.handleError(error)
76+
})
7177
})
7278
)
7379
}

apps/app/src/react/components/sidebar/timelineObj/timelineObjs/casparcg.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,6 @@ export const EditTimelineObjCasparCGAny: React.FC<{
19541954
value: m.layerId,
19551955
label: m.mapping.layerName || m.layerId,
19561956
}))
1957-
console.log(sourceMappingsOptions)
19581957

19591958
settings = (
19601959
<>

0 commit comments

Comments
 (0)