Skip to content

Commit

Permalink
chore: ignore error that comes from when user tries to paste somethin…
Browse files Browse the repository at this point in the history
…g strange
  • Loading branch information
nytamin committed May 4, 2023
1 parent d53d08a commit c6e0dbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apps/app/src/react/api/clipboard/clipboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ export function setupClipboard(context: ClipBoardContext): void {
}
}
})
.catch(context.handleError)
.catch((error) => {
if (`${error}`.match(/no valid data/i)) {
// This is a user error, not something we need to handle.
return
}
context.handleError(error)
})
})
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,6 @@ export const EditTimelineObjCasparCGAny: React.FC<{
value: m.layerId,
label: m.mapping.layerName || m.layerId,
}))
console.log(sourceMappingsOptions)

settings = (
<>
Expand Down

0 comments on commit c6e0dbc

Please sign in to comment.