cleanup
This commit is contained in:
@@ -125,7 +125,7 @@ const TagSection = ({
|
||||
{datalistId ? (
|
||||
<datalist id={datalistId}>
|
||||
{datalistOptions.map((option) => (
|
||||
<option key={option.id || option.label || option} value={option.label || option} />
|
||||
<option key={option.id} />
|
||||
))}
|
||||
</datalist>
|
||||
) : null}
|
||||
@@ -456,7 +456,7 @@ const DetailPanel = ({
|
||||
id: doc.id,
|
||||
url,
|
||||
orientation,
|
||||
alt: doc.title || doc.original_name || 'Document preview',
|
||||
alt: doc.title,
|
||||
};
|
||||
},
|
||||
[ensureAssetUrl, getDocumentAsset],
|
||||
@@ -500,7 +500,7 @@ const DetailPanel = ({
|
||||
id: singleDoc.id,
|
||||
url,
|
||||
orientation,
|
||||
alt: singleDoc.title || singleDoc.original_name || 'Document preview',
|
||||
alt: singleDoc.title,
|
||||
},
|
||||
];
|
||||
}, [singleDoc, singlePreviewNavigator.currentUrl, singlePreviewNavigator.currentMetadata]);
|
||||
@@ -522,7 +522,7 @@ const DetailPanel = ({
|
||||
id: doc.id,
|
||||
url,
|
||||
orientation,
|
||||
alt: doc.title || doc.original_name || 'Document preview',
|
||||
alt: doc.title,
|
||||
};
|
||||
}
|
||||
return makePreviewItem(doc, 1);
|
||||
@@ -724,7 +724,7 @@ const DetailPanel = ({
|
||||
) {
|
||||
return {
|
||||
url: singlePreviewNavigator.currentUrl,
|
||||
alt: singleDoc.title || singleDoc.original_name || 'Document preview',
|
||||
alt: singleDoc.title,
|
||||
canGoPrev:
|
||||
singleEffectiveCardinality > 1 && Boolean(singlePreviewNavigator.canGoPrev),
|
||||
canGoNext:
|
||||
@@ -743,7 +743,7 @@ const DetailPanel = ({
|
||||
) {
|
||||
return {
|
||||
url: stackPreviewNavigator.currentUrl,
|
||||
alt: stackTopDocument.title || stackTopDocument.original_name || 'Document preview',
|
||||
alt: stackTopDocument.title,
|
||||
canGoPrev:
|
||||
topEffectiveCardinality > 1 && Boolean(stackPreviewNavigator.canGoPrev),
|
||||
canGoNext:
|
||||
|
||||
Reference in New Issue
Block a user