We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0962e48 commit f11b47fCopy full SHA for f11b47f
1 file changed
apps/roam/src/components/settings/utils/pullWatchers.ts
@@ -254,23 +254,4 @@ export const setupPullWatchDiscourseNodes = (
254
};
255
256
257
-export const queryAllDiscourseNodePageUids = (): Record<string, string> => {
258
- const results = window.roamAlphaAPI.q(`
259
- [:find ?uid ?title
260
- :where
261
- [?page :node/title ?title]
262
- [?page :block/uid ?uid]
263
- [(clojure.string/starts-with? ?title "${DISCOURSE_NODE_PAGE_PREFIX}")]]
264
- `) as [string, string][];
265
-
266
- const nodePageUids: Record<string, string> = {};
267
268
- for (const [pageUid, title] of results) {
269
- const nodeLabel = title.replace(DISCOURSE_NODE_PAGE_PREFIX, "");
270
- nodePageUids[nodeLabel] = pageUid;
271
- }
272
273
- return nodePageUids;
274
-};
275
276
export { hasPropChanged, getNormalizedProps };
0 commit comments