fix(frontend): hide action dropdown in CardView when operations list is empty

This commit is contained in:
2026-01-31 11:14:26 +08:00
parent 498f23a0c4
commit 153066a95f

View File

@@ -276,7 +276,7 @@ function CardView<T extends BaseCardDataType>(props: CardViewProps<T>) {
{formatDateTime(item?.updatedAt)} {formatDateTime(item?.updatedAt)}
</div> </div>
</div> </div>
{operations && ( {operations && ops(item).length > 0 && (
<ActionDropdown <ActionDropdown
actions={ops(item)} actions={ops(item)}
onAction={(key) => { onAction={(key) => {