diff --git a/web/libs/datamanager/src/components/CellViews/ImageCell.jsx b/web/libs/datamanager/src/components/CellViews/ImageCell.jsx index 535a7bd8e12b..886377718200 100644 --- a/web/libs/datamanager/src/components/CellViews/ImageCell.jsx +++ b/web/libs/datamanager/src/components/CellViews/ImageCell.jsx @@ -1,5 +1,5 @@ import { getRoot } from "mobx-state-tree"; -import { FF_LSDV_4711, FF_MEMORY_LEAK_FIX, isFF } from "../../utils/feature-flags"; +import { FF_LSDV_4711, isFF } from "../../utils/feature-flags"; import { AnnotationPreview } from "../Common/AnnotationPreview/AnnotationPreview"; const imgDefaultProps = {}; @@ -12,7 +12,6 @@ export const ImageCell = (column) => { value, column: { alias }, } = column; - const isMemoryLeakFixEnabled = isFF(FF_MEMORY_LEAK_FIX); const root = getRoot(original); const renderImagePreview = original.total_annotations === 0 || !root.showPreviews; @@ -21,32 +20,18 @@ export const ImageCell = (column) => { if (!imgSrc) return null; return renderImagePreview ? ( - isMemoryLeakFixEnabled ? ( -
- ) : ( - Data - ) + Data ) : ( { export const AnnotationPreview = injector( observer(({ labelingConfig, name, task, annotation, style, ...props }) => { - const isMemoryLeakFixEnabled = isFF(FF_MEMORY_LEAK_FIX); const generator = React.useMemo(() => { if (labelingConfig) return PreviewGenerator.getInstance(labelingConfig); }, [labelingConfig]); @@ -127,29 +126,14 @@ export const AnnotationPreview = injector( }, [task, annotation, generator, preview]); return preview ? ( - isMemoryLeakFixEnabled ? ( -
- ) : ( - - ) + ) : (
- {isMemoryLeakFixEnabled ? ( -
- ) : ( - - )} +
); }),