mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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,
|
withControls,
|
||||||
}: ItemCardProps) => {
|
}: ItemCardProps) => {
|
||||||
const imageUrl = getImageUrl(data);
|
const imageUrl = getImageUrl(data);
|
||||||
const defaultRows = getDataRows();
|
const rows = providedRows || [];
|
||||||
const rows = providedRows && providedRows.length > 0 ? providedRows : defaultRows;
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'compact':
|
case 'compact':
|
||||||
|
|||||||
Reference in New Issue
Block a user