From bcce7f2011b3af25326661b9007c9fcd592c434c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Sat, 14 Mar 2026 00:25:18 +0900 Subject: [PATCH] =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=82=BF=E3=82=B0=E3=81=8C?= =?UTF-8?q?=E5=B1=A5=E6=AD=B4=E3=81=A7=E5=8F=96=E5=BE=97=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E3=83=95=E3=83=AD=E3=83=B3=E3=83=88=E3=81=8C?= =?UTF-8?q?=E8=90=BD=E3=81=A1=E3=82=8B=E3=83=90=E3=82=B0=EF=BC=88#290?= =?UTF-8?q?=EF=BC=89=20(#292)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #290 #290 'frontend/src/pages/posts/PostHistoryPage.tsx' を更新 'frontend/src/types.ts' を更新 Co-authored-by: miteruzo Reviewed-on: https://git.miteruzo.com/miteruzo/btrc-hub/pulls/292 --- frontend/src/pages/posts/PostHistoryPage.tsx | 6 ++++-- frontend/src/types.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/posts/PostHistoryPage.tsx b/frontend/src/pages/posts/PostHistoryPage.tsx index 7fe2202..ab54ad2 100644 --- a/frontend/src/pages/posts/PostHistoryPage.tsx +++ b/frontend/src/pages/posts/PostHistoryPage.tsx @@ -71,7 +71,7 @@ export default (() => { ++rowsCnt } return ( - {withPost && ( @@ -92,7 +92,9 @@ export default (() => { )} - + {change.tag + ? + : '(マスタ削除済のタグ) '} {`を${ change.changeType === 'add' ? '記載' : '消除' }`} diff --git a/frontend/src/types.ts b/frontend/src/types.ts index d7b0afd..f40f533 100644 --- a/frontend/src/types.ts +++ b/frontend/src/types.ts @@ -54,8 +54,8 @@ export type Post = { export type PostTagChange = { post: Post - tag: Tag - user?: User + tag: Tag | null + user: User | null changeType: 'add' | 'remove' timestamp: string }