Browse Source

fix(theme-shared): button code quality

pull/1577/head
mehmet-erim 7 years ago
parent
commit
9f9ce5810e
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

2
npm/ng-packs/packages/theme-shared/src/lib/components/button/button.component.ts

@ -51,7 +51,7 @@ export class ButtonComponent implements OnInit {
this.requestType.findIndex(type => type.toLowerCase() === event.payload.method.toLowerCase()) > -1;
}
if (this.requestURLContainSearchValue) {
if (condition && this.requestURLContainSearchValue) {
condition =
condition &&
event.payload.url.toLowerCase().indexOf(this.requestURLContainSearchValue.toLowerCase()) > -1;

Loading…
Cancel
Save