Skip to content

Commit 8a9150e

Browse files
committed
fix bug
1 parent 281b1a4 commit 8a9150e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

apps/roam/src/components/settings/DiscourseNodeSuggestiveRules.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
DiscourseNodeTextPanel,
1313
} from "./components/BlockPropSettingPanels";
1414

15+
const TEMPLATE_SETTING_KEYS = ["template"];
16+
1517
const BlockRenderer = ({ uid }: { uid: string }) => {
1618
const containerRef = useRef<HTMLDivElement>(null);
1719

@@ -86,7 +88,7 @@ const DiscourseNodeSuggestiveRules = ({
8688
nodeType={node.type}
8789
title="Template"
8890
description={`The template that auto fills ${node.text} page when generated.`}
89-
settingKeys={["template"]}
91+
settingKeys={TEMPLATE_SETTING_KEYS}
9092
uid={templateUid}
9193
/>
9294

apps/roam/src/components/settings/NodeConfig.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import {
2727
import createBlock from "roamjs-components/writes/createBlock";
2828
import updateBlock from "roamjs-components/writes/updateBlock";
2929

30+
const TEMPLATE_SETTING_KEYS = ["template"];
31+
3032
export const getCleanTagText = (tag: string): string => {
3133
return tag.replace(/^#+/, "").trim().toUpperCase();
3234
};
@@ -350,7 +352,7 @@ const NodeConfig = ({
350352
nodeType={node.type}
351353
title="Template"
352354
description={`The template that auto fills ${node.text} page when generated.`}
353-
settingKeys={["template"]}
355+
settingKeys={TEMPLATE_SETTING_KEYS}
354356
uid={templateUid}
355357
/>
356358
</div>

0 commit comments

Comments
 (0)