From 10d17676a4558cd38c6d739016f20e14ad730715 Mon Sep 17 00:00:00 2001 From: Stephen Nelson Date: Fri, 15 Dec 2023 12:50:35 +1030 Subject: [PATCH] Fix incorrect references to content --- .../katalyst/navigation/editor/new_items_component.html.erb | 2 +- app/javascript/navigation/editor/item.js | 1 - package.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/katalyst/navigation/editor/new_items_component.html.erb b/app/components/katalyst/navigation/editor/new_items_component.html.erb index fa2d84e..d727af7 100644 --- a/app/components/katalyst/navigation/editor/new_items_component.html.erb +++ b/app/components/katalyst/navigation/editor/new_items_component.html.erb @@ -1,3 +1,3 @@ -
+ diff --git a/app/javascript/navigation/editor/item.js b/app/javascript/navigation/editor/item.js index 102a487..7a0e59c 100644 --- a/app/javascript/navigation/editor/item.js +++ b/app/javascript/navigation/editor/item.js @@ -264,7 +264,6 @@ function createChildrenList(node) { const childrenList = document.createElement("ol"); childrenList.setAttribute("class", "hidden"); - // if objectType is "rich-content" set richContentChildren as a data attribute childrenList.dataset[`navigationChildren`] = ""; node.appendChild(childrenList); diff --git a/package.json b/package.json index 26cee9f..e3688c3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "main": "app/assets/builds/katalyst/content.js", + "main": "app/assets/builds/katalyst/navigation.js", "scripts": { "build": "yarn exec rollup -- -c", "clean": "rm -rf app/assets/builds/*"