11
Got it!
"this" might be undefined if used inside lambda function
just change
setProgram: (program: Program) => {
to:
setProgram: function (program: Program) {
and it works …
Source:stackexchange.com
11
Got it!
"this" might be undefined if used inside lambda function
just change
setProgram: (program: Program) => {
to:
setProgram: function (program: Program) {
and it works …