fix: unable to add new table fields

This commit is contained in:
Fabio Di Stasio 2022-06-14 11:48:36 +02:00
parent c37138c6f5
commit ee623b0a0f
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ else {
ipcMain.on('refresh-theme-settings', () => { ipcMain.on('refresh-theme-settings', () => {
const appTheme = persistentStore.get('application_theme'); const appTheme = persistentStore.get('application_theme');
if(isWindows){ if (isWindows) {
mainWindow.setTitleBarOverlay({ mainWindow.setTitleBarOverlay({
color: appTheme === 'dark' ? '#3f3f3f' : '#fff', color: appTheme === 'dark' ? '#3f3f3f' : '#fff',
symbolColor: appTheme === 'dark' ? '#fff' : '#000' symbolColor: appTheme === 'dark' ? '#fff' : '#000'

View File

@ -440,6 +440,7 @@ export default {
const changes = []; const changes = [];
this.localFields.forEach((field, i) => { this.localFields.forEach((field, i) => {
const originalField = this.originalFields.find(oField => oField._antares_id === field._antares_id); const originalField = this.originalFields.find(oField => oField._antares_id === field._antares_id);
if (!originalField) return;
const after = i > 0 ? this.localFields[i - 1].name : false; const after = i > 0 ? this.localFields[i - 1].name : false;
const orgName = originalField.name; const orgName = originalField.name;