diff --git a/client/components/shared/SectionContent.tsx b/client/components/shared/SectionContent.tsx index b6dcae034..9c2452f3a 100644 --- a/client/components/shared/SectionContent.tsx +++ b/client/components/shared/SectionContent.tsx @@ -82,9 +82,14 @@ const divCss = (hasNav: boolean | undefined) => css` } `; -export const SelectedTopicObjectContext = createContext< - Dispatch> ->(undefined!); // eslint-disable-line @typescript-eslint/no-non-null-assertion -- // TODO: refactor this var to remove need for disabling eslint rule +const defaultDispatch = (_value: SetStateAction) => { + return; +}; + +export const SelectedTopicObjectContext = + createContext>>( + defaultDispatch, + ); export const SectionContent = (props: SectionContentProps) => { const [selectedTopicId, setSelectedTopicId] = useState(