fix issue with vite migration (#217)

* hotfix: 1.8.2 issues vite migration
* fix: file import options
This commit is contained in:
Carlos Valente
2022-10-13 15:04:13 +02:00
committed by GitHub
parent 723b1cfa48
commit 320834beab
7 changed files with 1295 additions and 1573 deletions
+2 -1
View File
@@ -48,7 +48,8 @@ const uploadAndParse = async (file, req, res, options) => {
} else if (result.message === 'success') {
// explicitly write objects
if (typeof result !== 'undefined') {
if (!options.onlyEvents) {
const uploadAll = options?.onlyEvents === 'false';
if (uploadAll) {
const mergedData = DataProvider.safeMerge(data, result.data);
data.event = mergedData.event;
data.settings = mergedData.settings;