提交 d15416a1 编写于 作者: S SteVen Batten

fix optional chaining bug

fixes #83112
上级 8ab2f998
......@@ -402,7 +402,7 @@ export class CompositeBar extends Widget implements ICompositeBar {
() => this.model.activeItem ? this.model.activeItem.id : undefined,
(compositeId: string) => {
const item = this.model.findItem(compositeId);
return item?.activity?.[0].badge;
return item?.activity[0]?.badge;
},
this.options.getOnCompositeClickAction,
this.options.colors
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册