From 8118f52e7d95803b49aadfba8fe9c8e5323d5bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Wed, 5 Oct 2022 20:28:34 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=B3=E3=83=97=E3=82=92?= =?UTF-8?q?=E4=B8=A6=E5=88=97=E5=8F=96=E5=BE=97=20(#719)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store.ts | 6 +++++- tsconfig.json | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/store.ts b/src/store.ts index db96ec52..82fb9776 100644 --- a/src/store.ts +++ b/src/store.ts @@ -54,7 +54,11 @@ const fetchAndSetChannels = async (): Promise => { } const fetchAndSetStamps = async (): Promise => { - const stamps = (await apis.getStamps()).data + const [originalRes, unicodeRes] = await Promise.all([ + apis.getStamps(undefined, 'original'), + apis.getStamps(undefined, 'unicode') + ]) + const stamps = [...originalRes.data, ...unicodeRes.data] const stampNameMap = new Map(stamps.map(s => [s.name, s])) await set('stampNameMap', stampNameMap, store) } diff --git a/tsconfig.json b/tsconfig.json index 2da1deca..9cb3247b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "lib": ["es2018", "dom"], "types": ["vite/client"], "rootDir": "./src", - "importHelpers": true, "strict": true, "noUnusedLocals": true, "noUnusedParameters": true,