fix creation of new logic elements

This commit is contained in:
Michael Schramm 2022-03-27 20:41:27 +02:00
parent 3b5a6c92af
commit b6f0c9d64a
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@ Template for next version
### Fixed
- creation of new logic elements
### Security
## [1.0.3] - 2022-03-27

View File

@ -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
}