Skip to content

Commit 2ad7c74

Browse files
author
manasa
committed
fixed lint
1 parent 5a61d89 commit 2ad7c74

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

packages/react-sdk-components/src/components/template/DataReference/DataReference.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export default function DataReference(props: PropsWithChildren<DataReferenceProp
8383
const { allowImplicitRefresh } = isInfinity
8484
? PCore.getFieldDefaultUtils().fieldDefaults.DataReference || {}
8585
: {
86-
allowImplicitRefresh: true
87-
};
86+
allowImplicitRefresh: true
87+
};
8888

8989
let firstChildPConnect;
9090

@@ -126,12 +126,12 @@ export default function DataReference(props: PropsWithChildren<DataReferenceProp
126126
const ddDataSource = firstChildMeta.config.datasource.filterDownloadedFields
127127
? res.data.data
128128
: res.data.data
129-
.map(listItem => ({
130-
key: listItem[key.split(' .', 2)[1]],
131-
text: listItem[text.split(' .', 2)[1]],
132-
value: listItem[value.split(' .', 2)[1]]
133-
}))
134-
.filter(item => item.key);
129+
.map(listItem => ({
130+
key: listItem[key.split(' .', 2)[1]],
131+
text: listItem[text.split(' .', 2)[1]],
132+
value: listItem[value.split(' .', 2)[1]]
133+
}))
134+
.filter(item => item.key);
135135
// Filtering out undefined entries that will break preview
136136
setDropDownDataSource(ddDataSource);
137137
} else {
@@ -206,7 +206,7 @@ export default function DataReference(props: PropsWithChildren<DataReferenceProp
206206
getPConnect()
207207
.getActionsApi()
208208
.refreshCaseView(caseKey, viewName, pgRef, refreshOptions)
209-
.catch(() => { });
209+
.catch(() => {});
210210
}
211211
} else if (propValue && canBeChangedInReviewMode && isDisplayModeEnabled) {
212212
(PCore.getDataApiUtils().getCaseEditLock(caseKey, '') as Promise<any>).then(caseResponse => {
@@ -307,7 +307,7 @@ export default function DataReference(props: PropsWithChildren<DataReferenceProp
307307
) {
308308
firstChildMeta.config.datasource.source =
309309
(firstChildMeta.config.variant === 'card' && dropDownDataSource) ||
310-
(firstChildMeta.config.variant !== 'card' && rawViewMetadata.config?.parameters)
310+
(firstChildMeta.config.variant !== 'card' && rawViewMetadata.config?.parameters)
311311
? dropDownDataSource
312312
: '@DATASOURCE '.concat(refList).concat('.pxResults');
313313
} else if (firstChildMeta?.type === 'AutoComplete') {
@@ -372,8 +372,8 @@ export default function DataReference(props: PropsWithChildren<DataReferenceProp
372372

373373
const additionalInfo = refFieldMetadata?.additionalInformation
374374
? {
375-
content: refFieldMetadata.additionalInformation
376-
}
375+
content: refFieldMetadata.additionalInformation
376+
}
377377
: undefined;
378378

379379
const dataReferenceConfigToChild = {
@@ -392,14 +392,14 @@ export default function DataReference(props: PropsWithChildren<DataReferenceProp
392392
}),
393393
...(selectionMode === SELECTION_MODE.SINGLE &&
394394
displayAs === 'advancedSearch' && {
395-
value: rawViewMetadata.config.value,
396-
contextPage: rawViewMetadata.config.contextPage
397-
}),
395+
value: rawViewMetadata.config.value,
396+
contextPage: rawViewMetadata.config.contextPage
397+
}),
398398
...(selectionMode === SELECTION_MODE.MULTI &&
399399
displayAs === 'advancedSearch' && {
400-
selectionList,
401-
readonlyContextList: rawViewMetadata.config.readonlyContextList
402-
}),
400+
selectionList,
401+
readonlyContextList: rawViewMetadata.config.readonlyContextList
402+
}),
403403
dataRelationshipContext: rawViewMetadata.config.contextClass && rawViewMetadata.config.name ? rawViewMetadata.config.name : null,
404404
hideLabel,
405405
onRecordChange: handleSelection,

packages/react-sdk-components/src/components/template/ListView/ListView.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,9 @@ export default function ListView(props: ListViewProps) {
424424
[`T${index++}`]: { ...filter[relationalOp][1].condition }
425425
};
426426
if (dashboardFilterPayload.query.filter.logic) {
427-
dashboardFilterPayload.query.filter.logic = `${dashboardFilterPayload.query.filter.logic} ${relationalOp} (T${index - 2
428-
} ${dateRelationalOp} T${index - 1})`;
427+
dashboardFilterPayload.query.filter.logic = `${dashboardFilterPayload.query.filter.logic} ${relationalOp} (T${
428+
index - 2
429+
} ${dateRelationalOp} T${index - 1})`;
429430
} else {
430431
dashboardFilterPayload.query.filter.logic = `(T${index - 2} ${relationalOp} T${index - 1})`;
431432
}
@@ -484,9 +485,9 @@ export default function ListView(props: ListViewProps) {
484485
// getDataAsync isn't returning correct data for the Page(i.e. ListView within a page) case
485486
return !bInForm
486487
? // @ts-ignore - 3rd parameter "context" should be optional in getData method
487-
PCore.getDataApiUtils().getData(referenceList, payload)
488+
PCore.getDataApiUtils().getData(referenceList, payload)
488489
: // @ts-ignore - Argument of type 'null' is not assignable to parameter of type 'object'
489-
PCore.getDataPageUtils().getDataAsync(referenceList, context, payload ? payload.dataViewParameters : dataViewParameters, null, query);
490+
PCore.getDataPageUtils().getDataAsync(referenceList, context, payload ? payload.dataViewParameters : dataViewParameters, null, query);
490491
}
491492

492493
const buildSelect = (fieldDefs, colId, patchQueryFields = [], compositeKeys = []) => {

0 commit comments

Comments
 (0)