Skip to content

Commit 60bf71b

Browse files
committed
fix: picture area picker issue
1 parent c34fba1 commit 60bf71b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/moder/pictures/item/area/area.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class ModerPicturesItemAreaComponent implements OnDestroy, OnInit {
8282
tap((picture) => {
8383
this.#id = picture.id;
8484
this.picture = picture;
85+
this.#cdr.markForCheck();
8586
}),
8687
switchMap((picture) =>
8788
this.#route.queryParamMap.pipe(
@@ -97,6 +98,7 @@ export class ModerPicturesItemAreaComponent implements OnDestroy, OnInit {
9798
tap((data) => {
9899
this.#itemID = data.params.item_id;
99100
this.#type = data.params.type;
101+
this.#cdr.markForCheck();
100102
}),
101103
switchMap(({params, picture}) =>
102104
this.#picturesClient.getPictureItem(
@@ -121,6 +123,7 @@ export class ModerPicturesItemAreaComponent implements OnDestroy, OnInit {
121123
if (data.img && this.picture) {
122124
const body = data.img.parentElement;
123125
if (!body) {
126+
this.#cdr.markForCheck();
124127
return;
125128
}
126129

0 commit comments

Comments
 (0)