fix: loading media on new entry

This commit is contained in:
Daniel Lautzenheiser
2023-05-09 16:26:21 -04:00
parent 92cc4575f8
commit 473b265c2d
3 changed files with 8 additions and 8 deletions

View File

@ -187,8 +187,7 @@ function mediaLibrary(
dynamicSearch: Boolean(dynamicSearch),
dynamicSearchQuery: dynamicSearchQuery ?? '',
dynamicSearchActive: !!dynamicSearchQuery,
files:
page && page > 1 ? (state.files as MediaFile[]).concat(filesWithKeys) : filesWithKeys,
files: page && page > 1 ? (state.files ?? []).concat(filesWithKeys) : filesWithKeys,
};
}