Skip to content

Commit

Permalink
nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Nov 6, 2023
1 parent 37cc217 commit 37e3013
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Language } from "../../../shared/language";

export interface IMenuOptionSelectionUndoProps {
select: string[];
state: IArchiveProps;
state?: IArchiveProps;
undoSelection: () => void;
}

Expand All @@ -18,7 +18,7 @@ export const MenuOptionSelectionUndo: React.FunctionComponent<

return (
<>
{select.length === state.fileIndexItems.length ? (
{select.length === state?.fileIndexItems.length ? (
<li
data-test="undo-selection"
className="menu-option"
Expand Down

0 comments on commit 37e3013

Please sign in to comment.