diff --git a/src/components/accordion/Accordion.vue b/src/components/accordion/Accordion.vue index ceaf5e761..52454bc22 100755 --- a/src/components/accordion/Accordion.vue +++ b/src/components/accordion/Accordion.vue @@ -5,8 +5,8 @@ - {{tab.props?.header}} - + {{tab.props.header}} + @@ -81,10 +81,10 @@ export default { return index === this.d_activeIndex; }, getKey(tab, i) { - return tab.props?.header ? tab.props.header : i; + return (tab.props && tab.props.header) ? tab.props.header : i; }, isTabDisabled(tab) { - return tab.props?.disabled; + return tab.props && tab.props.disabled; }, getTabClass(i) { return ['p-accordion-tab', {'p-accordion-tab-active': this.isTabActive(i)}]; diff --git a/src/components/datatable/BodyCell.vue b/src/components/datatable/BodyCell.vue index 2f7ec18c8..c5037aaac 100755 --- a/src/components/datatable/BodyCell.vue +++ b/src/components/datatable/BodyCell.vue @@ -1,20 +1,20 @@