From c17237ee63242caffbbf9d26a4fe1d409382d235 Mon Sep 17 00:00:00 2001 From: mashm Date: Tue, 19 Nov 2024 15:55:23 +0530 Subject: [PATCH] Fixed the lint issue --- .../lib/_components/template/list-view/list-view.component.ts | 4 ++-- .../src/lib/_components/template/list-view/listViewHelpers.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/angular-sdk-components/src/lib/_components/template/list-view/list-view.component.ts b/packages/angular-sdk-components/src/lib/_components/template/list-view/list-view.component.ts index ce118fea..fe2ee259 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/list-view/list-view.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/template/list-view/list-view.component.ts @@ -22,7 +22,7 @@ import { getCurrencyOptions } from '../../../_helpers/currency-utils'; import { getLocale, getSeconds } from '../../../_helpers/common'; import { formatters } from '../../../_helpers/formatters/format-utils'; -import { useInit } from './listViewHelpers'; +import { init } from './listViewHelpers'; declare const window: any; @@ -218,7 +218,7 @@ export class ListViewComponent implements OnInit, OnDestroy { if (!this.payload) { this.payload = { referenceList: this.configProps$.referenceList }; } - useInit({ + init({ pConn$: this.pConn$, bInForm$: this.bInForm$, ...this.payload, diff --git a/packages/angular-sdk-components/src/lib/_components/template/list-view/listViewHelpers.ts b/packages/angular-sdk-components/src/lib/_components/template/list-view/listViewHelpers.ts index 422e9cf6..2c3edc77 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/list-view/listViewHelpers.ts +++ b/packages/angular-sdk-components/src/lib/_components/template/list-view/listViewHelpers.ts @@ -3,7 +3,7 @@ import { getContext, readContextResponse } from './utils'; // Remove this and use "real" PCore type once .d.ts is fixed (currently shows 1 error) declare const PCore: any; -export function useInit(props) { +export function init(props) { const { referenceList, pConn$,