Skip to content

Commit

Permalink
fix: store document references as plain objects (#5021)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpyon authored and hermanwikner committed Oct 31, 2023
1 parent 7301212 commit b2ed30f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ const BASE: CommentDocument = {
_dataset: '1',
_projectId: '1',
_ref: '1',
_type: 'crossDatasetReference',
_weak: true,
_type: 'object',
},
},
message: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export function useCommentOperations(
_dataset: dataset,
_projectId: projectId,
_ref: documentId,
_type: 'crossDatasetReference',
_weak: true,
_type: 'object',
},
documentType,
},
Expand Down
6 changes: 2 additions & 4 deletions packages/sanity/src/desk/comments/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,11 @@ export interface CommentDocument {
target: {
path: CommentPath
documentType: string

document: {
_dataset: string
_projectId: string // verify
_projectId: string
_ref: string
_type: 'crossDatasetReference'
_weak: true
_type: 'object'
}
}
}
Expand Down

0 comments on commit b2ed30f

Please sign in to comment.