Skip to content

Commit 6d550e4

Browse files
committed
fix(client): parse string data to set as object type
Signed-off-by: Alexandre Ferreira <alexjorgef@protonmail.com>
1 parent 4338572 commit 6d550e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/client/src/workspaces/agents/windows

apps/client/src/workspaces/agents/windows/Agent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const AgentWindow = ({
9999
if (!res.data.data) {
100100
res.data.data = {}
101101
}
102+
res.data.data = JSON.parse(res.data.data)
102103
setEnabled(res.data.enabled === true)
103104
setDiscordEnabled(res.data.data.discord_enabled === true)
104105
setUseVoice(res.data.data.use_voice === true)
@@ -656,7 +657,7 @@ const AgentWindow = ({
656657
setDiscordSpellHandlerUpdate(event.target.value)
657658
}}
658659
>
659-
<option value="null" selected>
660+
<option value="null">
660661
--Disabled--
661662
</option>
662663
{spellList.length > 0 &&

0 commit comments

Comments
 (0)