Ends in:
2 DAYS
14 HRS
46 MIN
7 SEC
Ends in:
2 D
14 H
46 M
7 S
Open Closed

Deleted organization unit gives "There is no entity..." error message #2235 #2598


User avatar
0
mert.kir created

Hello, the question was asked in the support ticket number 2235. However, no information has been given that it has been resolved. Any information on when it will be resolved?


4 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @mert.kir,

    I checked the previous issue. It seems to be resolved in the same day. It shouldn't occur again after 5.0.0 version.

  • User Avatar
    0
    mert.kir created

    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.

  • User Avatar
    0
    bunyamin created

    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());
            }
          });
    
    
  • User Avatar
    0
    mert.kir created

    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

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35