Update map selectedCells on plugin select

This commit is contained in:
Tyler Hallada 2022-08-20 00:52:40 -04:00
parent c94eb6a399
commit 4f3a439679

View File

@ -143,6 +143,10 @@ const ModData: React.FC<Props> = ({
if (fileData) setSelectedCells(fileData.cells); if (fileData) setSelectedCells(fileData.cells);
}, [fileData, setSelectedCells]); }, [fileData, setSelectedCells]);
useEffect(() => {
if (pluginData) setSelectedCells(pluginData.cells);
}, [pluginData, setSelectedCells]);
if (modError && modError.status === 404) { if (modError && modError.status === 404) {
return <div>Mod could not be found.</div>; return <div>Mod could not be found.</div>;
} else if (modError) { } else if (modError) {