From 5c2e0e46e1a081d63a53c1aaf1497798c5f3ce8b Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 1 Feb 2024 00:37:13 +0800 Subject: [PATCH] fix: fix a bug which data will reuse prev state in notification in production --- package.json | 3 ++- src/client/pages/Settings/NotificationList.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aed9c2f..8efe981 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "start:docker": "pnpm start:docker:db && pnpm start", "start:docker:db": "cd src/server && pnpm db:migrate:apply", "test": "vitest", - "build": "pnpm build:tracker && pnpm build:server && pnpm build:client && pnpm build:geo", + "build": "pnpm build:tracker && pnpm build:app && pnpm build:geo", + "build:app": "pnpm build:server && pnpm build:client", "build:client": "cd src/client && pnpm build", "build:server": "cd src/server && pnpm build", "build:tracker": "ts-node scripts/build-tracker.ts", diff --git a/src/client/pages/Settings/NotificationList.tsx b/src/client/pages/Settings/NotificationList.tsx index 889bdb0..30ee9ff 100644 --- a/src/client/pages/Settings/NotificationList.tsx +++ b/src/client/pages/Settings/NotificationList.tsx @@ -111,6 +111,7 @@ export const NotificationList: React.FC = React.memo(() => { />