diff --git a/CHANGELOG.md b/CHANGELOG.md index af377c20..242a8973 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - save error for reports without table - type parsing in report mapper - report import not creating dataset +- js files loaded in an undefined sequence #378 ## 4.11.0 - 2023-10-01 ### Added diff --git a/js/app.js b/js/app.js index 2254fadd..29f6f1df 100644 --- a/js/app.js +++ b/js/app.js @@ -18,11 +18,7 @@ 'use strict'; -if (!OCA.Analytics) { - /** - * @namespace - */ - OCA.Analytics = { +OCA.Analytics = Object.assign({}, OCA.Analytics, { TYPE_GROUP: 0, TYPE_INTERNAL_FILE: 1, TYPE_INTERNAL_DB: 2, @@ -65,8 +61,7 @@ if (!OCA.Analytics) { headers.append('Content-Type', 'application/json'); return headers; } - }; -} +}); /** * @namespace OCA.Analytics.Core */