in components/base-workflow-ui/packages/base-workflow-ui/src/parts/workflows/drafts/edit/WorkflowDraftEditor.js [105:130]
render() {
const stores = this.getStores();
const store = this.getStore();
let content = null;
if (stores.hasError) {
content = <ErrorBox error={stores.error} className="p0" />;
} else if (stores.loading) {
content = <ProgressPlaceHolder />;
} else if (stores.ready && isStoreEmpty(store)) {
content = <ErrorBox error="The workflow draft does not exist or is no longer available" className="p0" />;
} else if (stores.ready && isStoreNotEmpty(store) && !this.hasDraft()) {
content = <ErrorBox error="The workflow draft does not exist or is no longer available" className="p0" />;
} else if (stores.ready && isStoreNotEmpty(store) && this.hasDraft()) {
content = this.renderMain();
} else {
content = null;
}
return (
<Container className="mt3">
{this.renderBreadcrumb()}
{content}
</Container>
);
}