Skip to content
Snippets Groups Projects
Commit 338e87ed authored by Anthony's avatar Anthony
Browse files

Fix dependencies

parent 6de27d19
Branches
No related tags found
1 merge request!10Draft: MigratingAnnotationCreation to MUI5.
Pipeline #1912 failed
......@@ -20,7 +20,9 @@ import WebAnnotation from './WebAnnotation';
import { secondsToHMS } from './utils';
import AnnotationFormContent from './annotationForm/AnnotationFormContent';
import AnnotationFormTime from './annotationForm/AnnotationFormTime';
import {geomFromAnnoTarget, getSvg, saveAnnotation, timeFromAnnoTarget} from './AnnotationCreationUtils';
import {
geomFromAnnoTarget, getSvg, saveAnnotation, timeFromAnnoTarget,
} from './AnnotationCreationUtils';
import AnnotationFormOverlay from './annotationForm/AnnotationFormOverlay/AnnotationFormOverlay.js';
const TARGET_VIEW = 'target';
......@@ -103,7 +105,6 @@ function AnnotationCreation(props) {
}
// TODO add a case where no annotation
if (!annoState?.textBody) {
annoState.textBody = '';
}
......@@ -164,7 +165,6 @@ function AnnotationCreation(props) {
useLayoutEffect(() => {
}, [{ height, width }]);
/** set annotation start time to current time */
const setTstartNow = () => {
setState((prevState) => ({
......
......@@ -96,6 +96,7 @@ export function saveAnnotation(canvases, config, receiveAnnotation, annotation,
const anno = dumbAnnotation;
anno.drawingState = drawingStateSerialized;
anno.body.value = body.value;
if (annotation) {
storageAdapter.update(anno)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment