//this should work, but... //the night is dark and full of errors onCheckBoxChange = (val: string ) => (_e: any) => { if (typeof this.props.updatePermission === 'function' && this.props.officerId && this.props.officerId >= 0) { this.props.updatePermission(this.props.officerId, { ...{ isValidAsPast : this.props.isValidAsPast, isValidAsUpcoming: this.props.isValidAsUpcoming}, [val] : !this.props[val] } as PermissionPartial ); } }
Hahahaha, this great! Might steal that from you ;)
"The night is dark and full of errors."
How is this not a meme?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hahahaha, this great! Might steal that from you ;)
"The night is dark and full of errors."
How is this not a meme?