Skip to content

Commit ce8e561

Browse files
committed
fix lint
1 parent 0ed33fb commit ce8e561

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/components/OptionListContextProvider.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,14 @@ function OptionsListContextProvider({children}: OptionsListProviderProps) {
8888
}, [prevReportAttributesLocale, loadOptions, reportAttributes?.locale]);
8989

9090
const changedReportsEntries = useMemo(() => {
91-
const result: OnyxCollection<Report | null> = {};
91+
const result: OnyxCollection<OnyxEntry<Report> | null> = {};
9292

9393
Object.keys(changedReports ?? {}).forEach((key) => {
9494
let report: Report | null = reports?.[key] ?? null;
95+
result[key] = report;
9596
if (reports?.[key] === undefined && prevReports?.[key]) {
9697
report = null;
9798
}
98-
if (report !== undefined) {
99-
result[key] = report;
100-
}
10199
});
102100
return result;
103101
}, [changedReports, reports]);

0 commit comments

Comments
 (0)