perbaikan master edit
This commit is contained in:
@@ -127,8 +127,11 @@ export class MasterBuildingComponent {
|
||||
modalRef.result.then(
|
||||
(result) => {
|
||||
if (result) {
|
||||
if (this.filteredRows.some(value => value.name.toLowerCase() === result.name.toLowerCase())) {
|
||||
this.toastr.error("Warning", "Data yang anda masukan double.", {
|
||||
console.log(result);
|
||||
console.log(this.filteredRows);
|
||||
|
||||
if (this.filteredRows.some(value => value.name.toLowerCase() === result.name.toLowerCase() && value.status_id === result.statusId)) {
|
||||
this.toastr.error("Warning", "Nama Gedung yang anda masukan double.", {
|
||||
timeOut: 5000,
|
||||
closeButton: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user