diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-12 18:54:36 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-12 18:54:36 +0900 |
| commit | 35a45444774d6ffecb8a127a76d494adfb109f4f (patch) | |
| tree | cd6f5d86ede4a5077e4be4154edce6fe95bf7e8b | |
| parent | fix(storybook): use type-only imports in generated stories (#15654) (diff) | |
| download | sharkey-35a45444774d6ffecb8a127a76d494adfb109f4f.tar.gz sharkey-35a45444774d6ffecb8a127a76d494adfb109f4f.tar.bz2 sharkey-35a45444774d6ffecb8a127a76d494adfb109f4f.zip | |
add todo
| -rw-r--r-- | packages/frontend/src/preferences.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/preferences.ts b/packages/frontend/src/preferences.ts index bfcd8b8dd7..ab73fe2b77 100644 --- a/packages/frontend/src/preferences.ts +++ b/packages/frontend/src/preferences.ts @@ -50,7 +50,7 @@ const storageProvider: StorageProvider = { value: target[1], }; } catch (err: any) { - if (err.code === 'NO_SUCH_KEY') { + if (err.code === 'NO_SUCH_KEY') { // TODO: いちいちエラーキャッチするのは面倒なのでキーが無くてもエラーにならない maybe-get のようなエンドポイントをバックエンドに実装する return null; } else { throw err; @@ -66,7 +66,7 @@ const storageProvider: StorageProvider = { key: syncGroup + ':' + ctx.key, }) as [any, any][]; } catch (err: any) { - if (err.code === 'NO_SUCH_KEY') { + if (err.code === 'NO_SUCH_KEY') { // TODO: いちいちエラーキャッチするのは面倒なのでキーが無くてもエラーにならない maybe-get のようなエンドポイントをバックエンドに実装する cloudData = []; } else { throw err; |