{
setJsonErrors(contentErrors);
- setContent(newContent);
+ setStore((prev) => {
+ return { content: newContent, initialized: prev.initialized };
+ });
}}
/>
+ {
+ setStore({
+ content: { text: data?.getWorkflow ? data?.getWorkflow : JSON.stringify(defaultJob) },
+ initialized: true,
+ });
+ }}
+ >
+ Reset
+