Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: #952

haitao(lj)b53efcd2dd9e
diff --git a/ui/src/pages/Admin/Flags/index.tsx b/ui/src/pages/Admin/Flags/index.tsx
index 17a6b959..96b7318a 100644
--- a/ui/src/pages/Admin/Flags/index.tsx
+++ b/ui/src/pages/Admin/Flags/index.tsx
@@ -97,7 +97,9 @@ const Flags: FC = () => {
<tr>
<th>{t('flagged')}</th>
<th style={{ width: '20%' }}>{t('created')}</th>
- <th style={{ width: '20%' }}>{t('action')}</th>
+ {curFilter !== 'completed' ? (
+ <th style={{ width: '20%' }}>{t('action')}</th>
+ ) : null}
</tr>
</thead>
<tbody className="align-middle">
@@ -140,11 +142,13 @@ const Flags: FC = () => {
)}
</Stack>
</td>
- <td>
- <Button variant="link" onClick={() => handleReview(li)}>
- {t('review')}
- </Button>
- </td>
+ {curFilter !== 'completed' ? (
+ <td>
+ <Button variant="link" onClick={() => handleReview(li)}>
+ {t('review')}
+ </Button>
+ </td>
+ ) : null}
</tr>
);
})}