File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,7 @@ export const convert = (
56
56
const linkLc of card . linksLc . filter ( ( linkLc ) => linksLc . includes ( linkLc ) )
57
57
) {
58
58
const cardId = toId ( project , linkLc ) ;
59
- const bubble = storage . get ( cardId ) ;
60
- if ( ! bubble ) throw Error ( `storage already must have "${ cardId } "` ) ;
59
+ const bubble = storage . get ( cardId ) ?? makeDummy ( project , linkLc ) ;
61
60
if ( ! bubble . linked ) {
62
61
bubble . linked = [ card . titleLc ] ;
63
62
continue ;
@@ -99,8 +98,7 @@ export const convert = (
99
98
// 逆リンクを作る
100
99
// 重複はありえないので配列でいい
101
100
const cardId = toId ( project , linkLc ) ;
102
- const bubble = storage . get ( cardId ) ;
103
- if ( ! bubble ) throw Error ( `storage already must have "${ cardId } "` ) ;
101
+ const bubble = storage . get ( cardId ) ?? makeDummy ( project , linkLc ) ;
104
102
if ( ! bubble . linked ) {
105
103
bubble . linked = [ card . titleLc ] ;
106
104
continue ;
You can’t perform that action at this time.
0 commit comments