+ );
+
+ const renderEditForm = () => {
+ if (!editingNodeType) return null;
+
+ return (
+
+
- {hasUnsavedChanges && (
-
You have unsaved changes
- )}
+ );
+ };
+
+ return (
+
+ {selectedNodeIndex === null ? renderNodeList() : renderEditForm()}
);
};
diff --git a/apps/obsidian/src/components/RelationshipSettings.tsx b/apps/obsidian/src/components/RelationshipSettings.tsx
index faadf6555..7dc1bca7b 100644
--- a/apps/obsidian/src/components/RelationshipSettings.tsx
+++ b/apps/obsidian/src/components/RelationshipSettings.tsx
@@ -125,10 +125,6 @@ const RelationshipSettings = () => {
return (
-
-
Node Type Relations
-
-
{plugin.settings.nodeTypes.length === 0 ? (
You need to create some node types first.
) : plugin.settings.relationTypes.length === 0 ? (
diff --git a/apps/obsidian/src/components/RelationshipTypeSettings.tsx b/apps/obsidian/src/components/RelationshipTypeSettings.tsx
index b0d0008ed..e8e473795 100644
--- a/apps/obsidian/src/components/RelationshipTypeSettings.tsx
+++ b/apps/obsidian/src/components/RelationshipTypeSettings.tsx
@@ -103,7 +103,6 @@ const RelationshipTypeSettings = () => {
return (
-
Relation Types
{relationTypes.map((relationType, index) => (
diff --git a/apps/obsidian/src/components/Settings.tsx b/apps/obsidian/src/components/Settings.tsx
index e87d527b9..686d77ba8 100644
--- a/apps/obsidian/src/components/Settings.tsx
+++ b/apps/obsidian/src/components/Settings.tsx
@@ -13,10 +13,10 @@ const Settings = () => {
const [activeTab, setActiveTab] = useState("general");
return (
-
+
Discourse Graph Settings
-
+
setActiveTab("general")}
className={`discourse-tab mr-2 cursor-pointer border-0 px-4 py-2 ${