Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit e7af3a4

Browse files
committed
fix: potential error if custom background picker is cancelled out
1 parent 3550c5f commit e7af3a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/media/MediaDisplayButton.vue

+1
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ const chooseCustomBackground = async (reset?: boolean) => {
336336
try {
337337
const backgroundPicker = await openFileDialog(true, ['images+jwpub']);
338338
if (
339+
!backgroundPicker ||
339340
backgroundPicker.canceled ||
340341
backgroundPicker.filePaths?.length === 0
341342
) {

0 commit comments

Comments
 (0)