We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecbeb18 commit 30172d7Copy full SHA for 30172d7
1 file changed
packages/editor/src/workspaces/agents/AgentWindow/AgentDetails.tsx
@@ -25,6 +25,8 @@ const AgentDetails = ({
25
const [editMode, setEditMode] = useState<boolean>(false)
26
const [oldName, setOldName] = useState<string>('')
27
28
+ console.log('selectedAgentData', selectedAgentData)
29
+
30
const update = (id, data = undefined) => {
31
const _data = data || { ...selectedAgentData }
32
id = id || _data.id
@@ -205,7 +207,7 @@ const AgentDetails = ({
205
207
}}
206
208
name="rootSpell"
209
id="rootSpell"
- value={JSON.parse(selectedAgentData.rootSpell).name || 'default'}
210
+ value={selectedAgentData.rootSpell?.name || 'default'}
211
onChange={event => {
212
const newRootSpell = spellList.find(
213
spell => spell.name === event.target.value
0 commit comments