diff --git a/src/app/component-library/catalog/asset-detail-dialog/asset-property-grid-group-builder.ts b/src/app/component-library/catalog/asset-detail-dialog/asset-property-grid-group-builder.ts index 5a4933d1f..5011f4c30 100644 --- a/src/app/component-library/catalog/asset-detail-dialog/asset-property-grid-group-builder.ts +++ b/src/app/component-library/catalog/asset-detail-dialog/asset-property-grid-group-builder.ts @@ -163,8 +163,7 @@ export class AssetPropertyGridGroupBuilder { title: `${groupLabel} Contract Policy)`, subtitle: asset.name, icon: 'policy', - objectForJson: getLegacyPolicy(contractOffer.contractPolicy) - .policyJsonLd, + objectForJson: getLegacyPolicy(contractOffer.contractPolicy), }), }, { diff --git a/src/app/core/services/api/fake-backend/asset-fake-service.ts b/src/app/core/services/api/fake-backend/asset-fake-service.ts index 5dfdbd3d1..aecf3f826 100644 --- a/src/app/core/services/api/fake-backend/asset-fake-service.ts +++ b/src/app/core/services/api/fake-backend/asset-fake-service.ts @@ -6,7 +6,7 @@ import { } from '@sovity.de/edc-client'; import {TestAssets} from './data/test-assets'; -export let assets: UiAsset[] = [TestAssets.full, TestAssets.boring]; +let assets: UiAsset[] = [TestAssets.full, TestAssets.boring]; export const assetPage = (): AssetPage => { return { diff --git a/src/app/core/services/api/fake-backend/catalog-fake-service.ts b/src/app/core/services/api/fake-backend/catalog-fake-service.ts index 9d51203a1..73d71589b 100644 --- a/src/app/core/services/api/fake-backend/catalog-fake-service.ts +++ b/src/app/core/services/api/fake-backend/catalog-fake-service.ts @@ -2,7 +2,7 @@ import {UiDataOffer} from '@sovity.de/edc-client'; import {TestAssets} from './data/test-assets'; import {TestPolicies} from './data/test-policies'; -export let uiDataOffers: UiDataOffer[] = [ +let dataOffers: UiDataOffer[] = [ { endpoint: 'http://existing-other-connector/api/dsp', participantId: 'existing-other-connector', @@ -34,5 +34,5 @@ export let uiDataOffers: UiDataOffer[] = [ export const getCatalogPageDataOffers = ( connectorEndpoint: string, ): UiDataOffer[] => { - return uiDataOffers.filter((it) => it.endpoint === connectorEndpoint); + return dataOffers.filter((it) => it.endpoint === connectorEndpoint); }; diff --git a/src/app/core/services/api/fake-backend/contract-agreement-fake-service.ts b/src/app/core/services/api/fake-backend/contract-agreement-fake-service.ts index 0b75af483..b81ea8bfa 100644 --- a/src/app/core/services/api/fake-backend/contract-agreement-fake-service.ts +++ b/src/app/core/services/api/fake-backend/contract-agreement-fake-service.ts @@ -9,7 +9,7 @@ import {Patcher, patchObj} from '../../../utils/object-utils'; import {TestAssets} from './data/test-assets'; import {TestPolicies} from './data/test-policies'; -export let contractAgreements: ContractAgreementCard[] = [ +let contractAgreements: ContractAgreementCard[] = [ { contractAgreementId: 'my-own-asset-cd:f52a5d30-6356-4a55-a75a-3c45d7a88c3e', contractNegotiationId: diff --git a/src/app/core/services/api/fake-backend/contract-definition-fake-service.ts b/src/app/core/services/api/fake-backend/contract-definition-fake-service.ts index d2ec36bd6..2ce83f9ea 100644 --- a/src/app/core/services/api/fake-backend/contract-definition-fake-service.ts +++ b/src/app/core/services/api/fake-backend/contract-definition-fake-service.ts @@ -6,7 +6,7 @@ import { } from '@sovity.de/edc-client'; import {AssetProperty} from '../../models/asset-properties'; -export let contractDefinitions: ContractDefinitionEntry[] = [ +let contractDefinitions: ContractDefinitionEntry[] = [ { contractDefinitionId: 'test-contract-definition-1', contractPolicyId: 'test-policy-definition-1', diff --git a/src/app/core/services/api/fake-backend/contract-negotiation-fake-service.ts b/src/app/core/services/api/fake-backend/contract-negotiation-fake-service.ts index 4a8fc0e05..cc600aaa6 100644 --- a/src/app/core/services/api/fake-backend/contract-negotiation-fake-service.ts +++ b/src/app/core/services/api/fake-backend/contract-negotiation-fake-service.ts @@ -21,7 +21,7 @@ const agreed: ContractNegotiationState = { simplifiedState: ContractNegotiationStateSimplifiedStateEnum.Agreed, }; -export let negotiations: UiContractNegotiation[] = [ +let negotiations: UiContractNegotiation[] = [ { contractNegotiationId: 'test-contract-negotiation-1', createdAt: new Date(), diff --git a/src/app/core/services/api/fake-backend/policy-definition-fake-service.ts b/src/app/core/services/api/fake-backend/policy-definition-fake-service.ts index 1e76985c0..d109b6252 100644 --- a/src/app/core/services/api/fake-backend/policy-definition-fake-service.ts +++ b/src/app/core/services/api/fake-backend/policy-definition-fake-service.ts @@ -6,7 +6,7 @@ import { } from '@sovity.de/edc-client'; import {TestPolicies} from './data/test-policies'; -export let policyDefinitions: PolicyDefinitionDto[] = [ +let policyDefinitions: PolicyDefinitionDto[] = [ { policyDefinitionId: 'test-policy-definition-1', policy: TestPolicies.connectorRestricted, diff --git a/src/app/core/services/api/fake-backend/transfer-history-fake-service.ts b/src/app/core/services/api/fake-backend/transfer-history-fake-service.ts index f972331e9..18dbcbd60 100644 --- a/src/app/core/services/api/fake-backend/transfer-history-fake-service.ts +++ b/src/app/core/services/api/fake-backend/transfer-history-fake-service.ts @@ -3,10 +3,10 @@ import { TransferHistoryPage, UiAsset, } from '@sovity.de/edc-client'; -import {assets} from './asset-fake-service'; +import {getAssetById} from './asset-fake-service'; import {TestAssets} from './data/test-assets'; -export let transferHistoryEntries: TransferHistoryEntry[] = [ +let transferHistoryEntries: TransferHistoryEntry[] = [ { transferProcessId: '339b2a27-3b66-49f5-8b43-6a400d5914b5', createdDate: new Date('2023-03-20T11:18:59.659Z'), @@ -88,7 +88,7 @@ export const transferProcessAsset = (transferProcessId: string): UiAsset => { TestAssets.dummyAsset(assetId), ); - const assetEntry = assets.find((it) => it.assetId === assetId); + const assetEntry = getAssetById(assetId); return isProviding && assetEntry ? TestAssets.toAssetDto(assetEntry)