code style and missing semicolon
Triggering the correct function for an update of a component