Fix dropdown menu again, I guess

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-08-17 11:56:48 +02:00
parent 9a0324b055
commit 99dd7cf854

View file

@ -109,7 +109,7 @@ const DropdownMenu = (props: IDropdownMenu) => {
unlistenHistory.current = undefined;
}
const { state } = history.location;
if (goBack && state && (state as any).soapboxDropdownKey === dropdownHistoryKey.current) {
if (goBack && (state as any).soapboxDropdownKey && (state as any).soapboxDropdownKey === dropdownHistoryKey.current) {
history.goBack();
(history.location.state as any).soapboxDropdownKey = true;
}