File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/frontend/wwwroot/task Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 217217 fetchTaskStages ( data [ 0 ] ) ;
218218
219219 sessionStorage . setItem ( "apiTask" , JSON . stringify ( data [ 0 ] ) ) ;
220- const isHumanClarificationRequestNull = data ?. [ 0 ] ?. human_clarification_request === null
220+ //const isHumanClarificationRequestNull = data?.[0]?.human_clarification_request === null
221+ const isHumanClarificationResponseNotNull = data ?. [ 0 ] ?. human_clarification_response !== null ;
221222 const taskMessageTextareaElement = document . getElementById ( "taskMessageTextarea" ) ;
222223 const taskMessageAddButton = document . getElementById ( "taskMessageAddButton" ) ;
223224 const textInputContainer = document . getElementsByClassName ( "text-input-container" ) ;
224225
226+ if ( isHumanClarificationResponseNotNull ) {
227+ // Update the local state to set human_clarification_request to null
228+ data [ 0 ] . human_clarification_request = null ;
229+ console . log ( "Human clarification request set to null locally." ) ;
230+ }
231+
232+ const isHumanClarificationRequestNull = data ?. [ 0 ] ?. human_clarification_request === null
233+
225234 if ( isHumanClarificationRequestNull && taskMessageTextareaElement ) {
226235 taskMessageTextareaElement . setAttribute ( 'disabled' , true )
227236 taskMessageTextareaElement . style . backgroundColor = "#efefef" ;
You can’t perform that action at this time.
0 commit comments