@valtimo/layout 13.52.0 → 13.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3422,13 +3422,11 @@ class WidgetWizardDisplayConditionsStepComponent {
3422
3422
  content: this.translateService.instant('condition.operator.' + operator),
3423
3423
  selected: false,
3424
3424
  }))));
3425
- this.defaultConditionValues$ = toObservable(this.widgetWizardService.$widgetDisplayConditions).pipe(filter$1(conditions => !!conditions), take(1), map((conditions) => !conditions
3426
- ? []
3427
- : conditions.map(condition => ({
3428
- key: condition.path,
3429
- dropdown: condition.operator,
3430
- value: condition.value,
3431
- }))));
3425
+ this.defaultConditionValues$ = of(this.widgetWizardService.$widgetDisplayConditions()).pipe(map((conditions) => (conditions ?? []).map(condition => ({
3426
+ key: condition.path,
3427
+ dropdown: condition.operator,
3428
+ value: condition.value,
3429
+ }))));
3432
3430
  this.form = this.fb.group({
3433
3431
  conditions: this.fb.control(null),
3434
3432
  });