fix creation of new logic elements
This commit is contained in:
parent
3b5a6c92af
commit
b6f0c9d64a
@ -26,6 +26,8 @@ Template for next version
|
||||
|
||||
### Fixed
|
||||
|
||||
- creation of new logic elements
|
||||
|
||||
### Security
|
||||
|
||||
## [1.0.3] - 2022-03-27
|
||||
|
||||
@ -276,7 +276,7 @@ export class FormUpdateService {
|
||||
}
|
||||
|
||||
private findByIdInList<T extends { id: number }>(list: T[], id: string, fallback: T): T {
|
||||
if (!list || /^NEW-/.test(id)) {
|
||||
if (!list || /^NEW-/.test(id) || !id) {
|
||||
return fallback
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user