From f33fd3b49c80b0ccb1d7f11201e15a7aaa2406de Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Tue, 15 Mar 2022 22:50:51 -0400 Subject: [PATCH] Sort plugin mod file list by nexus_file_id --- components/Map.tsx | 2 +- components/PluginModList.tsx | 1 + slices/plugins.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Map.tsx b/components/Map.tsx index 12b0ad1..33f5d17 100644 --- a/components/Map.tsx +++ b/components/Map.tsx @@ -256,7 +256,7 @@ const Map: React.FC = () => { requestAnimationFrame(() => { if (map.current) map.current.resize(); }); - }, [map]); + }, [map, dispatch]); const clearSelectedMod = useCallback(() => { requestAnimationFrame(() => { diff --git a/components/PluginModList.tsx b/components/PluginModList.tsx index 078044f..1a3a09a 100644 --- a/components/PluginModList.tsx +++ b/components/PluginModList.tsx @@ -98,6 +98,7 @@ const PluginModList: React.FC = ({ mods, files, counts }) => {