From bff73eb0b612838b5d4e97cbcc77284123d5e0d4 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 1 Dec 2021 10:25:27 -0700 Subject: [PATCH] Calendar: Make sure we don't accidentally double the integrated app in the list --- calendar/js/app.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/calendar/js/app.ts b/calendar/js/app.ts index 3d5c4721b1..ba038227b3 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -861,10 +861,14 @@ export class CalendarApp extends EgwApp if(action.checked) { - integration_preference.push(app); + if(integration_preference.indexOf(app) === -1) + { + integration_preference.push(app); + } // After the preference change is done, get new info which should now include the app - callback = callback ? callback : function() { + callback = callback ? callback : function() + { this._fetch_data(this.state); }.bind(this); }