Fix plugin -> cell navigation

This commit is contained in:
Tyler Hallada 2022-03-14 23:33:37 -04:00
parent 824202d3a6
commit 621cb6a9f8

View File

@ -298,6 +298,7 @@ const Map: React.FC = () => {
clearSelectedCell(); clearSelectedCell();
} }
} else if (router.query.plugin && typeof router.query.plugin === "string") { } else if (router.query.plugin && typeof router.query.plugin === "string") {
clearSelectedCell();
setSidebarOpen(true); setSidebarOpen(true);
if (plugins && plugins.length > 0 && pluginsPending === 0) { if (plugins && plugins.length > 0 && pluginsPending === 0) {
const plugin = plugins.find((p) => p.hash === router.query.plugin); const plugin = plugins.find((p) => p.hash === router.query.plugin);