Browse Source

Change detector fix for assets editor.

pull/329/head
Sebastian Stehle 7 years ago
parent
commit
db2dc25992
  1. 4
      src/Squidex/app/features/content/shared/assets-editor.component.ts

4
src/Squidex/app/features/content/shared/assets-editor.component.ts

@ -64,8 +64,12 @@ export class AssetsEditorComponent implements ControlValueAccessor {
if (this.oldAssets.length !== assetIds.length) {
this.updateValue();
}
this.changeDetector.detectChanges();
}, () => {
this.oldAssets = ImmutableArray.empty();
this.changeDetector.detectChanges();
});
}
} else {

Loading…
Cancel
Save