Fix dropdown menu again, I guess
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
9a0324b055
commit
99dd7cf854
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ const DropdownMenu = (props: IDropdownMenu) => {
|
||||||
unlistenHistory.current = undefined;
|
unlistenHistory.current = undefined;
|
||||||
}
|
}
|
||||||
const { state } = history.location;
|
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.goBack();
|
||||||
(history.location.state as any).soapboxDropdownKey = true;
|
(history.location.state as any).soapboxDropdownKey = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue