Skip to content

Commit

Permalink
Update packages/client/src/app/inventory-management/inventory-tools/a…
Browse files Browse the repository at this point in the history
…rticles/articles.component.ts

Co-authored-by: Marc-Antoine <[email protected]>
  • Loading branch information
a-jaillet and Embraser01 committed Feb 8, 2021
1 parent 6fcaf5a commit 20d1f60
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,9 @@ export class ArticlesComponent implements OnInit{

dialogref.afterClosed().subscribe(async (res) => {
if(res){
for(const art of this.articles){
if(!this.productExist(art.name)){
if (this.articles.some(a => !this.productExist(art.name))) {
this.toaster.showToaster('ERREUR: Tous les produits ne sont pas en db');
return ;
}
return;
}
const dialogRef = this.dialog.open(OptionsDialogComponent, {
data: {
Expand Down

0 comments on commit 20d1f60

Please sign in to comment.