We're a place where coders share, stay up-to-date and grow their careers.
//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?
Hahahaha, this great! Might steal that from you ;)
"The night is dark and full of errors."
How is this not a meme?