Skip to content

Commit 1c28ec5

Browse files
committed
fix: incorrect data shown if filter match not found
1 parent ce83d39 commit 1c28ec5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/CatalogueContent.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ const CatalogueContent = () => {
160160
answerkeyCondition
161161
);
162162
});
163-
setFilteredPapers(filtered.length > 0 ? filtered : papersData);
164163
setAppliedFilters(true);
165164
} catch (error) {
166165
setPapers([]);
@@ -405,7 +404,7 @@ const CatalogueContent = () => {
405404
/>
406405
))
407406
) : (
408-
<p>No papers available with the applied filter</p>
407+
<p className="w-full">No papers available with the applied filter</p>
409408
)
410409
) : (
411410
papers.map((paper: IPaper) => (

0 commit comments

Comments
 (0)