Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
super.ngOnInit();
const { addItem, removeItems } = mapDispatchToArrayControlProps(
this.ngRedux.dispatch
);
this.addItem = addItem;
this.removeItems = removeItems;
}
ngOnInit() {
const { addItem } = mapDispatchToArrayControlProps(this.ngRedux.dispatch);
this.addItem = addItem;
}
protected mapToProps(state: JsonFormsState): ArrayControlProps {
const props = mapStateToArrayControlProps(state, this.getOwnProps());
const dispatch = mapDispatchToArrayControlProps(this.ngRedux.dispatch);
return { ...props, ...dispatch };
}
}
protected mapToProps(state: JsonFormsState): ArrayControlProps {
const props = mapStateToArrayControlProps(state, this.getOwnProps());
const dispatch = mapDispatchToArrayControlProps(this.ngRedux.dispatch);
return { ...props, ...dispatch };
}
}
protected mapToProps(state: JsonFormsState): ArrayControlProps {
const props = mapStateToArrayControlProps(state, this.getOwnProps());
const dispatch = mapDispatchToArrayControlProps(this.ngRedux.dispatch);
return { ...props, ...dispatch };
}
}