Skip to content

Commit d1f41dd

Browse files
committed
remove memonizeing mappings component
1 parent 3d4d45c commit d1f41dd

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

x-pack/plugins/search_indices/public/components/indices/details_page_mappings.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ export const SearchIndexDetailsMappings = ({ index }: SearchIndexDetailsMappings
2020
() => indexManagement.getIndexMappingComponent({ history }),
2121
[indexManagement, history]
2222
);
23-
return useMemo(() => {
24-
return (
25-
<>
26-
<EuiSpacer />
27-
<IndexMappingComponent index={index} showAboutMappings={false} />
28-
</>
29-
);
30-
}, [IndexMappingComponent, index]);
23+
24+
return (
25+
<>
26+
<EuiSpacer />
27+
<IndexMappingComponent index={index} showAboutMappings={false} />
28+
</>
29+
);
3130
};

0 commit comments

Comments
 (0)