Skip to content

Commit 8bfd6ca

Browse files
committed
Form re-initialization limited to iiif enabled item.
1 parent 7c5d31f commit 8bfd6ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,10 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
714714
this.formModel.push(this.iiifWidthContainer);
715715
this.inputModels.push(this.iiifHeightModel);
716716
this.formModel.push(this.iiifHeightContainer);
717+
// re-initialize the form and detect the change.
718+
this.setForm();
719+
this.changeDetectorRef.detectChanges();
717720
}
718-
// re-initialize the form and detect the change.
719-
this.setForm();
720-
this.changeDetectorRef.detectChanges();
721721
});
722722

723723
this.subs.push(iiifSub);

0 commit comments

Comments
 (0)