Fix load order re-applying and transition between sidebar pages

This commit is contained in:
2022-03-02 23:23:06 -05:00
parent de445627bf
commit 96599cb2c8
5 changed files with 49 additions and 63 deletions

View File

@@ -4,7 +4,7 @@ import "mapbox-gl/dist/mapbox-gl.css";
import Map from "../components/Map";
import { useAppDispatch } from "../lib/hooks";
import { setPluginsTxt } from "../slices/pluginsTxt";
import { setPluginsTxtAndApplyLoadOrder } from "../slices/pluginsTxt";
const Home: NextPage = () => {
const dispatch = useAppDispatch();
@@ -74,7 +74,7 @@ const Home: NextPage = () => {
if (evt.dataTransfer.items && evt.dataTransfer.items.length > 0) {
const file = evt.dataTransfer.items[0].getAsFile();
if (file) {
dispatch(setPluginsTxt(await file.text()));
dispatch(setPluginsTxtAndApplyLoadOrder(await file.text()));
}
}
}}