Update map selectedCells on plugin select
This commit is contained in:
parent
c94eb6a399
commit
4f3a439679
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user