awstools: Fixed some bugs with the item view UI model

- The item view model is now being updated when the item itself is being updated
- Fixed a NPE when the item view model receives a nil item
This commit is contained in:
Leon Mika 2022-07-18 08:04:03 +10:00
parent 0f0bf70d01
commit cc7ead496f
4 changed files with 8 additions and 8 deletions

View file

@ -60,10 +60,7 @@ func (c *CommandController) Alias(commandName string) Command {
return events.SetError(errors.New("no such command: " + commandName))
}
if len(args) > 1 {
return command(args[1:])
}
return command([]string{})
return command(args)
}
}