diff --git a/src/components/Label/Toolbar/Toolbar.js b/src/components/Label/Toolbar/Toolbar.js index 33b3534c..061580db 100644 --- a/src/components/Label/Toolbar/Toolbar.js +++ b/src/components/Label/Toolbar/Toolbar.js @@ -27,10 +27,7 @@ export const Toolbar = observer(({ view, history, lsf, isLabelStream, hasInstruc const task = view.dataStore.selected; - const { viewingAllAnnotations, viewingAllPredictions } = - lsf?.annotationStore ?? {}; - - const viewAll = viewingAllAnnotations || viewingAllPredictions; + const { viewingAll: viewAll } = lsf?.annotationStore ?? {}; return lsf?.noTask === false && task ? ( diff --git a/src/sdk/dm-sdk.js b/src/sdk/dm-sdk.js index 722b41f0..aceb052c 100644 --- a/src/sdk/dm-sdk.js +++ b/src/sdk/dm-sdk.js @@ -33,7 +33,6 @@ * interfaces: Dict, * instruments: Dict, * toolbar?: string, - * panels?: Record[] * spinner?: import("react").ReactNode * apiTransform?: Record * tabControls?: { add?: boolean, delete?: boolean, edit?: boolean, duplicate?: boolean }, @@ -159,7 +158,6 @@ export class DataManager { this.showPreviews = config.showPreviews ?? false; this.polling = config.polling; this.toolbar = config.toolbar ?? DEFAULT_TOOLBAR; - this.panels = config.panels; this.spinner = config.spinner; this.spinnerSize = config.spinnerSize; this.instruments = prepareInstruments(config.instruments ?? {}); diff --git a/src/sdk/lsf-sdk.js b/src/sdk/lsf-sdk.js index 2ca2c841..6c2c054a 100644 --- a/src/sdk/lsf-sdk.js +++ b/src/sdk/lsf-sdk.js @@ -15,7 +15,6 @@ import { FF_DEV_1752, FF_DEV_2186, - FF_DEV_2715, FF_DEV_2887, FF_DEV_3034, FF_DEV_3734, @@ -163,8 +162,6 @@ export class LSFWrapper { const queuePosition = queueDone ? queueDone + 1 : queueLeft ? queueTotal - queueLeft + 1 : 1; const lsfProperties = { - // ensure that we are able to distinguish at component level if the app has fully hydrated. - hydrated: false, user: options.user, config: this.lsfConfig, task: taskToLSFormat(this.task), @@ -195,7 +192,6 @@ export class LSFWrapper { onSelectAnnotation: this.onSelectAnnotation, onNextTask: this.onNextTask, onPrevTask: this.onPrevTask, - panels: this.datamanager.panels, }; this.initLabelStudio(lsfProperties); @@ -378,13 +374,6 @@ export class LSFWrapper { this.lsf.initializeStore(lsfTask); this.setAnnotation(annotationID, fromHistory || isRejectedQueue); this.setLoading(false); - if (isFF(FF_DEV_2715)) { - this.setHydrated(true); - } - } - - setHydrated(value) { - this.lsf.setHydrated?.(value); } /** @private */