mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 20:40:15 +02:00
prevent item card from using default rows if none specified
This commit is contained in:
@@ -62,8 +62,7 @@ export const ItemCard = ({
|
||||
withControls,
|
||||
}: ItemCardProps) => {
|
||||
const imageUrl = getImageUrl(data);
|
||||
const defaultRows = getDataRows();
|
||||
const rows = providedRows && providedRows.length > 0 ? providedRows : defaultRows;
|
||||
const rows = providedRows || [];
|
||||
|
||||
switch (type) {
|
||||
case 'compact':
|
||||
|
||||
Reference in New Issue
Block a user