fix: fix a bug which data will reuse prev state in notification in production

This commit is contained in:
moonrailgun 2024-02-01 00:37:13 +08:00
parent dde617fa0c
commit 5c2e0e46e1
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@
"start:docker": "pnpm start:docker:db && pnpm start", "start:docker": "pnpm start:docker:db && pnpm start",
"start:docker:db": "cd src/server && pnpm db:migrate:apply", "start:docker:db": "cd src/server && pnpm db:migrate:apply",
"test": "vitest", "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:client": "cd src/client && pnpm build",
"build:server": "cd src/server && pnpm build", "build:server": "cd src/server && pnpm build",
"build:tracker": "ts-node scripts/build-tracker.ts", "build:tracker": "ts-node scripts/build-tracker.ts",

View File

@ -111,6 +111,7 @@ export const NotificationList: React.FC = React.memo(() => {
/> />
<NotificationInfoModal <NotificationInfoModal
key={editingFormData?.id}
open={open} open={open}
initialValues={editingFormData} initialValues={editingFormData}
onSubmit={handleSubmit} onSubmit={handleSubmit}