mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-24 07:47:29 -04:00
fix undefined indexof error
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user