RED-3800 hotfix

This commit is contained in:
Timo Bejan 2023-06-16 18:36:44 +03:00
parent 143fb8d298
commit f54fb5b806

View File

@ -105,7 +105,7 @@ export class DictionaryService extends EntitiesService<IDictionary, Dictionary>
dictionaryEntryType = DictionaryEntryTypes.ENTRY,
) {
const entriesToAdd: Array<string> = [];
entries = entries.map(e => e.trim());
entries = entries.map(e => e?.trim());
const initialEntriesSet = new Set(initialEntries);
let hasInvalidRows = false;
for (let i = 0; i < entries.length; i++) {