0
mert.kir created
4 Answer(s)
-
0
It would be better to write information for those who have this problem under abp 5.0 version. Because after the statement that we will solve the problem, there was no information.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hello,
If you can download the source code, you can implement your fix until you upgrade your packages.
In
organization-units.component.ts, after deleting a unit, you need to check if it is the selected unit.Change
// ... .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service.delete(id).subscribe(() => this.get());to
// ... .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service .delete(id) .pipe( tap(_ => { if (id === this.selectedUnit?.id) { this.selectedUnit = null; } }), ) .subscribe(() => this.get()); } });Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hello,
If you can download the source code, you can implement your fix until you upgrade your packages.
In
organization-units.component.ts, after deleting a unit, you need to check if it is the selected unit.Change
// ... .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service.delete(id).subscribe(() => this.get());to
// ... .subscribe((status: Confirmation.Status) => { if (status === Confirmation.Status.confirm) { this.service .delete(id) .pipe( tap(_ => { if (id === this.selectedUnit?.id) { this.selectedUnit = null; } }), ) .subscribe(() => this.get()); } });thanks for the reply
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)