From 140a0bc2b1610970f9ed59311efb704e006bfb07 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Sat, 30 May 2020 19:46:20 +0300 Subject: [PATCH] Fix issue where Ctrl-Z on editor always resulted in empty editor --- src/editor/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/editor/index.tsx b/src/editor/index.tsx index b3feb02..61e5c64 100644 --- a/src/editor/index.tsx +++ b/src/editor/index.tsx @@ -171,6 +171,10 @@ class FakeEditor extends React.Component { render() { let { value, activeTab, schema, dirty, dirtySchema } = this.state; + if (value == null) { + return
Loading...
; + } + return (