diff --git a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx index 15862ac99c..5c5628faf1 100644 --- a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx +++ b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx @@ -283,86 +283,79 @@ export const ArchiveTable = ({ /> } > + + + + + {rows.map((row, index) => { + const isVirtual = + index < firstRenderedIndex || + index > lastRenderedIndex; + + if (isVirtual) { + return null; + } + + prepareRow(row); + return ( + + {row.cells.map(cell => ( + + {cell.render('Cell')} + + ))} + + ); + })} + +
+
} - elseShow={() => ( - <> - - - - - {rows.map((row, index) => { - const isVirtual = - index < firstRenderedIndex || - index > lastRenderedIndex; - - if (isVirtual) { - return null; - } - - prepareRow(row); - return ( - - {row.cells.map(cell => ( - - {cell.render('Cell')} - - ))} - - ); - })} - -
-
- 0 - } - show={ - - No feature toggles found matching “ - {searchValue}” - - } - /> - - )} + condition={rows.length === 0 && searchValue?.length > 0} + show={ + + No feature toggles found matching “ + {searchValue}” + + } + /> + + None of the feature toggles where archived yet. + + } /> );