File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/frontend/wwwroot/task Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 223223 const taskMessageAddButton = document . getElementById ( "taskMessageAddButton" ) ;
224224 const textInputContainer = document . getElementsByClassName ( "text-input-container" ) ;
225225
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+
226234 if ( isHumanClarificationRequestNull && taskMessageTextareaElement ) {
227235 taskMessageTextareaElement . setAttribute ( 'disabled' , true )
228236 taskMessageTextareaElement . style . backgroundColor = "#efefef" ;
You can’t perform that action at this time.
0 commit comments