File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
pub-sub-message-annotations/javascript/src/components Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 105
105
"@ably/chat" : " ^0.14.0" ,
106
106
"@ably/chat-react-ui-components" : " ^0.1.2" ,
107
107
"@ably/spaces" : " ^0.4.0" ,
108
- "ably" : " ^2.9 .0" ,
108
+ "ably" : " ^2.13 .0" ,
109
109
"cors" : " ^2.8.5" ,
110
110
"franken-ui" : " ^2.0.0" ,
111
111
"minifaker" : " ^1.34.1" ,
Original file line number Diff line number Diff line change @@ -242,15 +242,17 @@ export function updateAnnotationSummary(message: MessageSummary) {
242
242
}
243
243
244
244
sectionsContainer . innerHTML = '' ;
245
- const hasAnnotations = annotationTypes . some ( ( type ) => message . annotations . summary && message . annotations . summary [ `${ annotationNamespace } :${ type . key } ` ] ) ;
245
+ const hasAnnotations = annotationTypes . some (
246
+ ( type ) => message . annotations ?. summary && message . annotations ?. summary [ `${ annotationNamespace } :${ type . key } ` ] ,
247
+ ) ;
246
248
247
249
if ( ! hasAnnotations ) {
248
250
sectionsContainer . appendChild ( createEmptyAnnotationSummaryContentElement ( ) ) ;
249
251
return ;
250
252
}
251
253
252
254
for ( const { key } of annotationTypes ) {
253
- const entry = message . annotations . summary [ `${ annotationNamespace } :${ key } ` ] ;
255
+ const entry = message . annotations ? .summary [ `${ annotationNamespace } :${ key } ` ] ;
254
256
if ( ! entry ) {
255
257
continue ;
256
258
}
Original file line number Diff line number Diff line change 703
703
magic-string "^0.27.0"
704
704
react-refresh "^0.14.0"
705
705
706
- ably@^2.9 .0 :
707
- version "2.9 .0"
708
- resolved "https://registry.npmjs.org /ably/-/ably-2.9 .0.tgz"
709
- integrity sha512-ddaurgvYHGmVVZkd5U2xJgLrbVdtAIw1RunfuZroE/ZTsmK2+vUnAZ7aKhR20cwOFP3QyLFYs6IfvwaijnIPlA ==
706
+ ably@^2.13 .0 :
707
+ version "2.13 .0"
708
+ resolved "https://registry.yarnpkg.com /ably/-/ably-2.13 .0.tgz#f9e1aebdf1f69700b5b20f0029ff1c383c2ed123 "
709
+ integrity sha512-fgrzWlUWRCOCqCNq1szMZNsa/VXYwS3DParDpMuhCBPxmsDL2Y1fMpppfHtQiFRvNFcInY9bPQXuPFjJpmqSHw ==
710
710
dependencies :
711
711
" @ably/msgpack-js" " ^0.4.0"
712
712
dequal "^2.0.3"
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const UserIndicator = ({ user }: { user: string }) => {
37
37
38
38
const getDependencies = ( id : string , products : string [ ] , activeLanguage : LanguageKey ) => {
39
39
return {
40
- ably : '^2.9 .0' ,
40
+ ably : '^2.13 .0' ,
41
41
nanoid : '^5.0.7' ,
42
42
minifaker : '1.34.1' ,
43
43
'franken-ui' : '^2.0.0' ,
You can’t perform that action at this time.
0 commit comments