mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 00:13:53 +00:00
fix issue with vite migration (#217)
* hotfix: 1.8.2 issues vite migration * fix: file import options
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user