Closed istnv closed 1 year ago
Actions are filtered by modelID
to remove commands that are not available on certain units.
However, the action itself uses instance.model
which is created here:
https://github.com/bitfocus/companion-module-novastar-controller/blob/99d33b47371c30ad57e721396c20a69c8f1687ee/index.js#L74
---- from this definition for the mctrl4k
----
https://github.com/bitfocus/companion-module-novastar-controller/blob/e45ee504f564132e3d3f35e660849bf92879b140/choices.js#L325
Since id
does not match the object key, instance.model
is undefined and throws an error when building the actions in actions.js
Two ways to fix this:
id: 'mctrl4k'
and adjust the filter in actions.js
to matchMCTRL4k
and add an upgrade script to fix any modules pre 3.0
Stable and beta modules crash: