UI [MAP]: Fixed parse data for datasource type function

This commit is contained in:
Vladyslav_Prykhodko 2021-07-02 15:31:49 +03:00 committed by Andrew Shvayka
parent 29d04ef792
commit 7c20121337

View File

@ -319,7 +319,7 @@ export const parseWithTranslation = {
};
export function parseData(input: DatasourceData[]): FormattedData[] {
return _(input).groupBy(el => el?.datasource.entityId + el?.datasource.entityType)
return _(input).groupBy(el => el?.datasource.entityName + el?.datasource.entityType)
.values().value().map((entityArray, i) => {
const obj: FormattedData = {
entityName: entityArray[0]?.datasource?.entityName,