Skip to content

Commit

Permalink
Fix react_ui build
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Apr 22, 2024
1 parent a03860c commit 5d2d220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react/components/matrix/row.tsx
Expand Up @@ -36,7 +36,7 @@ export class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {

componentWillUnmount(): void {
super.componentWillUnmount();
this.model.setRootElement(undefined);
this.model.setRootElement(undefined as any);
}

public shouldComponentUpdate(nextProps: any, nextState: any): boolean {
Expand All @@ -46,7 +46,7 @@ export class MatrixRow extends SurveyElementBase<IMatrixRowProps, any> {
nextProps.element.setRootElement(this.root.current);
}
if(this.model) {
this.model.setRootElement(undefined);
this.model.setRootElement(undefined as any);
}
}
return true;
Expand Down

0 comments on commit 5d2d220

Please sign in to comment.