Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix: add check for the highlight pipe that text exist (#1108)
Browse files Browse the repository at this point in the history
PR Close #1103
  • Loading branch information
tamazlykar committed Jun 20, 2018
1 parent a6ad5ca commit 76379ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/pipes/highlight.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class HighLightPipe implements PipeTransform {
public transform(text: string, search: string): string {
if (!search) {
if (!search || !text) {
return text;
}

Expand Down

0 comments on commit 76379ed

Please sign in to comment.