From fa71cd011c39381ad92c05caa5bbd326acfcdbd3 Mon Sep 17 00:00:00 2001 From: Nathan LeRoy Date: Thu, 18 Jul 2024 14:24:31 -0400 Subject: [PATCH] lets try this way --- web/src/components/project/project-interface.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/src/components/project/project-interface.tsx b/web/src/components/project/project-interface.tsx index 73a2ddf8..1b969ffe 100644 --- a/web/src/components/project/project-interface.tsx +++ b/web/src/components/project/project-interface.tsx @@ -166,10 +166,12 @@ export const ProjectInterface = (props: Props) => { ( + render={() => ( { - onChange(samples); + projectUpdates.setValue('samples', samples, { + shouldDirty: true, + }); }} readOnly={!userCanEdit} data={currentHistoryId ? sampleListToArrays(historyData?._sample_dict || []) : newSamples} @@ -182,10 +184,12 @@ export const ProjectInterface = (props: Props) => { ( + render={() => ( { - onChange(subsamples); + projectUpdates.setValue('subsamples', subsamples, { + shouldDirty: true, + }); }} data={currentHistoryId ? historyData?._subsample_list || [] : newSubsamples} height={window.innerHeight - 15 - (projectDataRef.current?.offsetTop || 300)}