Skip to content

Commit a806598

Browse files
committed
AC-2880::Magento 2.4.4 admin panel - Uncaught SyntaxError: Unexpected token const - Console error Fixed when JS bundling is enabled
1 parent 26b4840 commit a806598

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

lib/web/jquery/bootstrap/collapse.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ define([
3838
const Default = {
3939
toggle: true,
4040
parent: null
41-
}
41+
};
4242

4343
const DefaultType = {
4444
toggle: 'boolean',
4545
parent: '(null|element)'
46-
}
46+
};
4747

4848
const EVENT_SHOW = `show${EVENT_KEY}`;
4949
const EVENT_SHOWN = `shown${EVENT_KEY}`;
@@ -242,10 +242,10 @@ define([
242242
this._isTransitioning = true;
243243

244244
const complete = () => {
245-
this._isTransitioning = false
246-
this._element.classList.remove(CLASS_NAME_COLLAPSING)
247-
this._element.classList.add(CLASS_NAME_COLLAPSE)
248-
EventHandler.trigger(this._element, EVENT_HIDDEN)
245+
this._isTransitioning = false;
246+
this._element.classList.remove(CLASS_NAME_COLLAPSING);
247+
this._element.classList.add(CLASS_NAME_COLLAPSE);
248+
EventHandler.trigger(this._element, EVENT_HIDDEN);
249249
}
250250

251251
this._element.style[dimension] = '';

lib/web/jquery/bootstrap/tab.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ define([
128128
const complete = () => {
129129
EventHandler.trigger(previous, EVENT_HIDDEN, {
130130
relatedTarget: this._element
131-
})
131+
});
132132
EventHandler.trigger(this._element, EVENT_SHOWN, {
133133
relatedTarget: previous
134-
})
134+
});
135135
}
136136

137137
if (target) {

0 commit comments

Comments
 (0)