You've already forked DataMate
fix(frontend): hide action dropdown in CardView when operations list is empty
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user