Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected mapToProps(state: JsonFormsState): ArrayControlProps {
const props = mapStateToArrayControlProps(state, this.getOwnProps());
const dispatch = mapDispatchToArrayControlProps(this.ngRedux.dispatch);
return { ...props, ...dispatch };
}
}
export const ctxToArrayControlProps = (ctx: JsonFormsStateContext, props: OwnPropsOfControl) =>
mapStateToArrayControlProps({ jsonforms: { ...ctx } }, props);
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 };
}
}