Skip to content

Commit d85b443

Browse files
committed
rm default nodes "fix"
1 parent 324ff43 commit d85b443

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/utils/getExportTypes.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,8 @@ type Props = {
200200
const getExportTypes = ({ results, exportId }: Props): ExportTypes => {
201201
const allRelations = getDiscourseRelations();
202202
const allNodes = getDiscourseNodes(allRelations);
203-
const allNodesDefaultRemoved = allNodes.filter(
204-
(node) => node.backedBy !== "default"
205-
);
206203
const nodeLabelByType = Object.fromEntries(
207-
allNodesDefaultRemoved.map((a) => [a.type, a.text])
204+
allNodes.map((a) => [a.type, a.text])
208205
);
209206
nodeLabelByType["*"] = "Any";
210207
const getPageData = async (
@@ -215,7 +212,7 @@ const getExportTypes = ({ results, exportId }: Props): ExportTypes => {
215212
? await results(isSamePageEnabled)
216213
: results;
217214
const matchedTexts = new Set();
218-
return allNodesDefaultRemoved.flatMap((n) =>
215+
return allNodes.flatMap((n) =>
219216
(allResults
220217
? allResults.flatMap((r) =>
221218
Object.keys(r)

0 commit comments

Comments
 (0)