Set remove alert to close when removing an item
This commit is contained in:
parent
f795c6fad7
commit
f3886c3ce8
3 changed files with 3 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ const CharacterUnit = ({
|
||||||
|
|
||||||
function removeCharacter() {
|
function removeCharacter() {
|
||||||
if (gridCharacter) sendCharacterToRemove(gridCharacter.id)
|
if (gridCharacter) sendCharacterToRemove(gridCharacter.id)
|
||||||
|
setAlertOpen(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Methods: Image string generation
|
// Methods: Image string generation
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,7 @@ const SummonUnit = ({
|
||||||
|
|
||||||
function removeSummon() {
|
function removeSummon() {
|
||||||
if (gridSummon) sendSummonToRemove(gridSummon.id)
|
if (gridSummon) sendSummonToRemove(gridSummon.id)
|
||||||
|
setAlertOpen(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Methods: Image string generation
|
// Methods: Image string generation
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,7 @@ const WeaponUnit = ({
|
||||||
|
|
||||||
function removeWeapon() {
|
function removeWeapon() {
|
||||||
if (gridWeapon) sendWeaponToRemove(gridWeapon.id)
|
if (gridWeapon) sendWeaponToRemove(gridWeapon.id)
|
||||||
|
setAlertOpen(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Methods: Data fetching and manipulation
|
// Methods: Data fetching and manipulation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue