summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-12 18:54:36 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-12 18:54:36 +0900
commit35a45444774d6ffecb8a127a76d494adfb109f4f (patch)
treecd6f5d86ede4a5077e4be4154edce6fe95bf7e8b
parentfix(storybook): use type-only imports in generated stories (#15654) (diff)
downloadsharkey-35a45444774d6ffecb8a127a76d494adfb109f4f.tar.gz
sharkey-35a45444774d6ffecb8a127a76d494adfb109f4f.tar.bz2
sharkey-35a45444774d6ffecb8a127a76d494adfb109f4f.zip
add todo
-rw-r--r--packages/frontend/src/preferences.ts4
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;