File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
apps/roam/src/components/settings/utils Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -254,23 +254,4 @@ export const setupPullWatchDiscourseNodes = (
254254} ;
255255
256256
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-
276257export { hasPropChanged , getNormalizedProps } ;
You can’t perform that action at this time.
0 commit comments