0.16.1-7 Release-Bugfixes
This commit is contained in:
@@ -142,7 +142,10 @@ export default function CdMetadataDialog({
|
||||
const searchRunId = searchRunRef.current + 1;
|
||||
searchRunRef.current = searchRunId;
|
||||
try {
|
||||
const searchResults = await onSearch(trimmedQuery);
|
||||
const expectedTrackCount = Array.isArray(tocTracks) ? tocTracks.length : 0;
|
||||
const searchResults = await onSearch(trimmedQuery, {
|
||||
trackCount: expectedTrackCount > 0 ? expectedTrackCount : null
|
||||
});
|
||||
const normalizedResults = Array.isArray(searchResults) ? searchResults : [];
|
||||
await Promise.all(normalizedResults.map((item) => preloadCoverImage(item?.coverArtUrl)));
|
||||
if (searchRunRef.current !== searchRunId) {
|
||||
@@ -264,6 +267,7 @@ export default function CdMetadataDialog({
|
||||
emptyMessage="Keine Treffer"
|
||||
>
|
||||
<Column header="Album" body={mbTitleBody} />
|
||||
<Column field="trackCount" header="Tracks" style={{ width: '6rem' }} />
|
||||
<Column field="year" header="Jahr" style={{ width: '6rem' }} />
|
||||
<Column field="country" header="Land" style={{ width: '6rem' }} />
|
||||
</DataTable>
|
||||
|
||||
Reference in New Issue
Block a user