From 0289ff336318d2f615515f907459c62343ad6ca2 Mon Sep 17 00:00:00 2001 From: Harsha Vardhini Date: Thu, 12 Mar 2020 11:22:23 +0530 Subject: [PATCH] Updated the constructor issue --- .../src/webparts/scriptEditor/components/ScriptEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/react-script-editor/src/webparts/scriptEditor/components/ScriptEditor.tsx b/samples/react-script-editor/src/webparts/scriptEditor/components/ScriptEditor.tsx index 4f1e91435..ff0698d8c 100644 --- a/samples/react-script-editor/src/webparts/scriptEditor/components/ScriptEditor.tsx +++ b/samples/react-script-editor/src/webparts/scriptEditor/components/ScriptEditor.tsx @@ -8,8 +8,8 @@ import { loadStyles } from '@microsoft/load-themed-styles'; require('./overrides.css'); export default class ScriptEditor extends React.Component { - constructor() { - super(); + constructor(props: IScriptEditorProps, state: any) { + super(props); this._showDialog = this._showDialog.bind(this); this._closeDialog = this._closeDialog.bind(this);