Skip to content

Commit

Permalink
fix(editor): fast backlink creation w/o issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thesophiaxu committed Apr 20, 2022
1 parent acd55ee commit 9673430
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ export const useNoteEditor: (...args: any) => [any, (text: string) => void, () =
'_value[': [
{
_key: `[[${newName}]]`,
_index: {
'_value.#i':
locateInlineChildren(dataRef.current)._value?.children?.[
'_value['
]?.length || 0,
},
_value: {
'dgraph.type': ['Interface'],
type: { 'unigraph.id': '$/schema/interface/semantic' },
Expand Down

0 comments on commit 9673430

Please sign in to comment.