fix undefined indexof error

This commit is contained in:
jliddev
2020-10-23 00:01:24 -05:00
parent f9e8c5620e
commit c6c7554091

View File

@@ -5,11 +5,11 @@ import { Pipe, PipeTransform } from "@angular/core";
})
export class InterfaceFormatPipe implements PipeTransform {
transform(value: string, ...args: unknown[]): string {
if (value.indexOf(".") !== -1) {
if (!value) {
return value;
}
if (!value) {
if (value.indexOf(".") !== -1) {
return value;
}