Skip to content

Commit 642224f

Browse files
authoredMar 8, 2024
fix(comments): use _weak instead of weak (#5936)
1 parent 75273af commit 642224f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed
 

‎packages/sanity/src/structure/comments/src/hooks/use-comment-operations/createOperation.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ export async function createOperation(props: CreateOperationProps): Promise<void
8686
document: {
8787
_ref: documentId,
8888
_type: 'reference',
89-
weak: true,
89+
_weak: true,
9090
},
9191
documentType,
9292
},
9393
}
94-
95-
return
9694
}
9795

9896
if (comment.type === 'field') {

‎packages/sanity/src/structure/comments/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export interface CommentDocument {
225225
| {
226226
_ref: string
227227
_type: 'reference'
228-
weak: boolean
228+
_weak: boolean
229229
}
230230
}
231231
}

0 commit comments

Comments
 (0)
Please sign in to comment.