空リンクを貼り付けられない
タイトル通りですtakker.icon
再現方法
1. 同じプロジェクトの空リンクのURLをクリップボードにコピーする 2. 適当なページでCtrl+Vを押す
期待する動作:リンクが入力される
実際の動作:何も起きない
consoleを見ると、次のエラーが出力される
code:error
index.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'title')
at scrapboxUrlToPageLink (index.js:2:3085644)
at applyUrlTransformFunctions (index.js:2:3689375)
at transformUrl (index.js:2:3688477)
at transformText (index.js:2:2689770)
at TextInput.onInput (index.js:2:3721011)
at wrapper (index.js:2:995160)
at Object.Rb (index.js:2:812972)
at Xb (index.js:2:813132)
at Yb (index.js:2:831372)
at Ze (index.js:2:831468)
推測される原因
scrapboxUrlToPageLink内のthis.QuickSearch.find()内のthis.titleLcMapの中身がおかしい
https://gyazo.com/15a7b0a5e470064d44618e846e13ad12
空リンクのとき、ページデータではなくtrueが入ってしまっている
このときthis.QuickSearch.find().titleを実行してしまうことで、Cannot read properties of undefined (reading 'title')が発生する
環境
Edge136@windows11
cosense: assets-20250518-211829
ありがとうございます。修正しましたshokai.icon
ありがとうございます!takker.icon