fix: Исправил ошибку метода Entity.isPersisted

This commit is contained in:
Nikita Dezzpil Orlov 2022-01-31 17:40:17 +03:00
parent 41aa5d951a
commit aa38fae8cc

View File

@ -48,7 +48,7 @@ export abstract class Entity<T extends Data> {
}
isPersisted(): boolean {
return this.__id !== ''
return this.__id !== undefined && this.__id !== ''
}
toString() {