We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dba483 commit 68b8428Copy full SHA for 68b8428
src/backend/effects/builtin/overlay-widgets/update-overlay-widget-settings.ts
@@ -178,7 +178,10 @@ const model: EffectType<{
178
$scope.typeHasSettings = false;
179
180
function loadSelectedConfig(id: string) {
181
- $scope.selectedConfig = overlayWidgetsService.getOverlayWidgetConfig(id);
+ const foundConfig = overlayWidgetsService.getOverlayWidgetConfig(id);
182
+ // @ts-ignore
183
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
184
+ $scope.selectedConfig = foundConfig ? angular.copy(foundConfig) : null;
185
if ($scope.selectedConfig == null) {
186
$scope.selectedType = null;
187
$scope.settingsSchema = [];
0 commit comments