Skip to content

Commit 96acfc0

Browse files
committed
fix ESlint.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent dc01194 commit 96acfc0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/workspace/reportFields/InitialListValueSelector/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type InitialListValueSelectorProps = Pick<MenuItemBaseProps, 'label' | 'rightLab
2121
};
2222

2323
function InitialListValueSelector({value = '', label = '', rightLabel, subtitle = '', errorText = '', onInputChange}: InitialListValueSelectorProps, forwardedRef: ForwardedRef<View>) {
24-
const [formDraft] = useOnyx(ONYXKEYS.FORMS.WORKSPACE_REPORT_FIELDS_FORM_DRAFT);
24+
const [formDraft] = useOnyx(ONYXKEYS.FORMS.WORKSPACE_REPORT_FIELDS_FORM_DRAFT, {canBeMissing: true});
2525

2626
const [isPickerVisible, setIsPickerVisible] = useState(false);
2727

src/pages/workspace/reportFields/TypeSelector/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {MenuItemBaseProps} from '@components/MenuItem';
66
import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription';
77
import useLocalize from '@hooks/useLocalize';
88
import blurActiveElement from '@libs/Accessibility/blurActiveElement';
9-
import * as WorkspaceReportFieldUtils from '@libs/WorkspaceReportFieldUtils';
9+
import {getReportFieldTypeTranslationKey} from '@libs/WorkspaceReportFieldUtils';
1010
import type {ReportFieldItemType} from '@pages/workspace/reportFields/ReportFieldTypePicker';
1111
import CONST from '@src/CONST';
1212
import type {PolicyReportFieldType} from '@src/types/onyx/Policy';
@@ -51,7 +51,7 @@ function TypeSelector({value, label = '', rightLabel, subtitle = '', errorText =
5151
<MenuItemWithTopDescription
5252
ref={forwardedRef}
5353
shouldShowRightIcon
54-
title={value ? Str.recapitalize(translate(WorkspaceReportFieldUtils.getReportFieldTypeTranslationKey(value as PolicyReportFieldType))) : ''}
54+
title={value ? Str.recapitalize(translate(getReportFieldTypeTranslationKey(value as PolicyReportFieldType))) : ''}
5555
description={label}
5656
rightLabel={rightLabel}
5757
brickRoadIndicator={errorText ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : undefined}

0 commit comments

Comments
 (0)