Otvoriť Uzavreté

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


User avatar
0
mert.kir vytvorené

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 odpoveď(e)/dí
  • User Avatar
    0
    yekalkan vytvorené
    Tím podpory 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 vytvorené

    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 vytvorené

    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 vytvorené

    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 v8.2.0-preview Updated on marca 25, 2024, 15:11