Skip to content

Commit b7cdd64

Browse files
committed
Fix the this context
1 parent 61c7a73 commit b7cdd64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/taxonomyPicker/termActions/TermActionsControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class TermActionsControl extends React.Component<ITermActionsCont
5555
* Sets the visibility of a certain action
5656
* @param isHidden
5757
*/
58-
private setActionVisibility(actionId: string, isHidden: boolean) {
58+
private setActionVisibility = (actionId: string, isHidden: boolean) => {
5959
this.setState((prevState: ITermActionsControlState) => {
6060
const action = find(prevState.availableActions, a => a.id === actionId);
6161
action.hidden = isHidden;

0 commit comments

Comments
 (0)