mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
fix issue with vite migration (#217)
* hotfix: 1.8.2 issues vite migration * fix: file import options
This commit is contained in:
@@ -53,6 +53,11 @@ describe('validate routes', () => {
|
||||
cy.contains('Info');
|
||||
});
|
||||
|
||||
it('renders lower third with no errors', () => {
|
||||
cy.visit('http://localhost:4001/lower');
|
||||
cy.get('[data-testid="error-container"]').should('not.exist');
|
||||
});
|
||||
|
||||
it('renders studio clock', () => {
|
||||
cy.visit('http://localhost:4001/studio');
|
||||
cy.contains('ON AIR');
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ontime",
|
||||
"version": "1.8.2",
|
||||
"version": "1.8.3",
|
||||
"author": "Carlos Valente",
|
||||
"description": "Time keeping for live events",
|
||||
"repository": "https://github.com/cpvalente/ontime",
|
||||
|
||||
@@ -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;
|
||||
|
||||
+1282
-1564
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user