From b8d2f7574e8dc7084f77b69fb9e7c6d14a978ac5 Mon Sep 17 00:00:00 2001 From: Arman Ozak Date: Tue, 1 Dec 2020 02:29:46 +0300 Subject: [PATCH] fix: use correct dto for property ui lookup --- .../theme-shared/extensions/src/lib/utils/state.util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/extensions/src/lib/utils/state.util.ts b/npm/ng-packs/packages/theme-shared/extensions/src/lib/utils/state.util.ts index 16d8b62785..96f802af35 100644 --- a/npm/ng-packs/packages/theme-shared/extensions/src/lib/utils/state.util.ts +++ b/npm/ng-packs/packages/theme-shared/extensions/src/lib/utils/state.util.ts @@ -2,7 +2,7 @@ import { ABP, ApplicationLocalizationConfigurationDto, ConfigStateService, - ExtensionPropertyUiDto, + ExtensionPropertyUiLookupDto, } from '@abp/ng.core'; import { Observable, pipe, zip } from 'rxjs'; import { filter, map, switchMap, take } from 'rxjs/operators'; @@ -121,7 +121,7 @@ function createPropertiesToContributorsMapper( Object.keys(properties).forEach((name: string) => { const property = properties[name]; - const lookup = property.ui || ({} as ExtensionPropertyUiDto); + const lookup = property.ui.lookup || ({} as ExtensionPropertyUiLookupDto); const type = getTypeaheadType(lookup, name) || getTypeFromProperty(property); const displayName = generateDisplayName(property.displayName, { name, resource });