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);
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user