diff --git a/packages/renderer/src/lib/image/RunImage.svelte b/packages/renderer/src/lib/image/RunImage.svelte index bdee544dbb60d..b6dab0d50876b 100644 --- a/packages/renderer/src/lib/image/RunImage.svelte +++ b/packages/renderer/src/lib/image/RunImage.svelte @@ -201,9 +201,9 @@ async function getPortsInfo(portDescriptor: string): Promise * Select an environment file */ async function selectEnvironmentFile(index: number) { - const result = await window.openFileDialog('Select environment file'); - if (!result.canceled && result.filePaths.length === 1) { - environmentFiles[index] = result.filePaths[0]; + const filePaths = await window.openDialog({ title: 'Select environment file' }); + if (filePaths?.length === 1) { + environmentFiles[index] = filePaths[0]; } }