From bea4a1e066f1bd819e4b202f585b67042215f5e4 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Sat, 2 Oct 2021 18:27:26 +0200 Subject: [PATCH] chore: bump browser-fs-acccess to 0.20.5 (#4018) * bump browser-fs-acccess to 0.20.5 * add null check --- package.json | 2 +- src/actions/actionExport.tsx | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 00a5f1a1..cd9bc3cc 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@types/react": "17.0.3", "@types/react-dom": "17.0.3", "@types/socket.io-client": "1.4.36", - "browser-fs-access": "0.18.0", + "browser-fs-access": "0.20.5", "clsx": "1.1.1", "firebase": "8.3.3", "i18next-browser-languagedetector": "6.1.0", diff --git a/src/actions/actionExport.tsx b/src/actions/actionExport.tsx index 3916b0eb..bffa9298 100644 --- a/src/actions/actionExport.tsx +++ b/src/actions/actionExport.tsx @@ -142,7 +142,7 @@ export const actionSaveToActiveFile = register({ ...appState, fileHandle, toastMessage: fileHandleExists - ? fileHandle.name + ? fileHandle?.name ? t("toast.fileSavedToFilename").replace( "{filename}", `"${fileHandle.name}"`, diff --git a/yarn.lock b/yarn.lock index 7211decb..e1e41bb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3218,10 +3218,10 @@ brorand@^1.0.1, brorand@^1.1.0: version "1.1.0" resolved "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz" -browser-fs-access@0.18.0: - version "0.18.0" - resolved "https://registry.yarnpkg.com/browser-fs-access/-/browser-fs-access-0.18.0.tgz#d69758ff83ce6a16bb0ece2541742bc3cd86db65" - integrity sha512-1B6CTTpYl0kP5sP+rJ8osy4Yka8WqnrXHqChMZZVzlw7pQ2VJ+IiLEP7SxonHjtMMSLCnpd24mU08FIExXb2DQ== +browser-fs-access@0.20.5: + version "0.20.5" + resolved "https://registry.yarnpkg.com/browser-fs-access/-/browser-fs-access-0.20.5.tgz#16bea029f6dc14787c8b394360f32f3b8cf06f50" + integrity sha512-ROPZ9ZYC4gptm0JRH/DgTm9dDLzUrOksBw8VMcUm7TINyaan5KUJPkklEurl0WTapfuy5T85GSP6bRmX/BpbnA== browser-process-hrtime@^1.0.0: version "1.0.0"