Don't show weapon mod button if weapon has no id
This commit is contained in:
parent
bc76df5054
commit
a12b0383ef
1 changed files with 4 additions and 1 deletions
|
|
@ -390,7 +390,10 @@ const WeaponUnit = (props: Props) => {
|
|||
|
||||
const unitContent = (
|
||||
<div className={classes}>
|
||||
{props.editable && gridWeapon && canBeModified(gridWeapon) ? (
|
||||
{props.editable &&
|
||||
gridWeapon &&
|
||||
gridWeapon.id &&
|
||||
canBeModified(gridWeapon) ? (
|
||||
<WeaponModal gridWeapon={gridWeapon}>
|
||||
<div>
|
||||
<Button accessoryIcon={<SettingsIcon />} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue