Ignore:
Timestamp:
11/16/20 03:55:10 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
db484c9
Parents:
8b13eb2
Message:

Fix bugs, add some more.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/dialogs/list-medicines-dialog/list-medicines-dialog.component.ts

    r8b13eb2 r8e74e2f  
    1010})
    1111export class ListMedicinesDialogComponent implements OnInit {
    12   medicines: IMedicine[];
     12  medicines: IMedicine[] = [];
    1313  listMedicines: IMedicine[];
    1414  filteredListMedicines: IMedicine[];
     
    3030      this.medicines = this.medicines.filter(x => x != selectedMedicine);
    3131    }
    32     else {
    33       this.medicines.push(selectedMedicine);
    34     }
     32    this.medicines.push(selectedMedicine);
    3533  }
    3634
Note: See TracChangeset for help on using the changeset viewer.