@@ -697,30 +697,35 @@ export const PanelInner = () => {
697697 { selectedNode . data . type !== "action" ||
698698 selectedNode . data . config ?. actionType ? (
699699 < >
700- < div className = "space-y-2" >
701- < Label className = "ml-1" htmlFor = "label" >
702- Label
703- </ Label >
704- < Input
705- disabled = { isGenerating }
706- id = "label"
707- onChange = { ( e ) => handleUpdateLabel ( e . target . value ) }
708- value = { selectedNode . data . label }
709- />
710- </ div >
700+ { /* Hide Label and Description for read-contract action */ }
701+ { selectedNode . data . config ?. actionType !== "web3/read-contract" && (
702+ < >
703+ < div className = "space-y-2" >
704+ < Label className = "ml-1" htmlFor = "label" >
705+ Label
706+ </ Label >
707+ < Input
708+ disabled = { isGenerating }
709+ id = "label"
710+ onChange = { ( e ) => handleUpdateLabel ( e . target . value ) }
711+ value = { selectedNode . data . label }
712+ />
713+ </ div >
711714
712- < div className = "space-y-2" >
713- < Label className = "ml-1" htmlFor = "description" >
714- Description
715- </ Label >
716- < Input
717- disabled = { isGenerating }
718- id = "description"
719- onChange = { ( e ) => handleUpdateDescription ( e . target . value ) }
720- placeholder = "Optional description"
721- value = { selectedNode . data . description || "" }
722- />
723- </ div >
715+ < div className = "space-y-2" >
716+ < Label className = "ml-1" htmlFor = "description" >
717+ Description
718+ </ Label >
719+ < Input
720+ disabled = { isGenerating }
721+ id = "description"
722+ onChange = { ( e ) => handleUpdateDescription ( e . target . value ) }
723+ placeholder = "Optional description"
724+ value = { selectedNode . data . description || "" }
725+ />
726+ </ div >
727+ </ >
728+ ) }
724729 </ >
725730 ) : null }
726731 </ div >
0 commit comments