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);
}, [fileData, setSelectedCells]);
useEffect(() => {
if (pluginData) setSelectedCells(pluginData.cells);
}, [pluginData, setSelectedCells]);
if (modError && modError.status === 404) {
return <div>Mod could not be found.</div>;
} else if (modError) {