Merge pull request #176 from jedmund/fix-delete
Fixes bug with item deletion
This commit is contained in:
commit
2e88a8696d
3 changed files with 3 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ const CharacterUnit = ({
|
|||
|
||||
function removeCharacter() {
|
||||
if (gridCharacter) sendCharacterToRemove(gridCharacter.id)
|
||||
setAlertOpen(false)
|
||||
}
|
||||
|
||||
// Methods: Image string generation
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ const SummonUnit = ({
|
|||
|
||||
function removeSummon() {
|
||||
if (gridSummon) sendSummonToRemove(gridSummon.id)
|
||||
setAlertOpen(false)
|
||||
}
|
||||
|
||||
// Methods: Image string generation
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ const WeaponUnit = ({
|
|||
|
||||
function removeWeapon() {
|
||||
if (gridWeapon) sendWeaponToRemove(gridWeapon.id)
|
||||
setAlertOpen(false)
|
||||
}
|
||||
|
||||
// Methods: Data fetching and manipulation
|
||||
|
|
|
|||
Loading…
Reference in a new issue