Skip to content

Commit d9e5f84

Browse files
committed
fixup! fixup! fixup! remove react-markdown lib
Signed-off-by: Oleksii Orel <[email protected]>
1 parent 99ecd91 commit d9e5f84

File tree

1 file changed

+3
-5
lines changed
  • packages/dashboard-frontend/src/components/DevfileViewer

1 file changed

+3
-5
lines changed

packages/dashboard-frontend/src/components/DevfileViewer/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ export class DevfileViewer extends React.PureComponent<Props> {
5454
}
5555
}
5656

57-
componentDidUpdate(prevProps: Readonly<Props>): void {
58-
if (this.editor && this.props.value !== prevProps.value) {
59-
this.editor.getDoc().setValue(this.props.value);
60-
this.editor.focus();
61-
}
57+
componentDidUpdate(): void {
58+
this.editor.setValue(this.props.value);
59+
this.editor.focus();
6260
}
6361

6462
public render(): React.ReactElement {

0 commit comments

Comments
 (0)