fix(webui): encode automation update values
This commit is contained in:
1 parent
5892c6913b
commit
f8bf6aea51
5 files changed
+41
-16
No files matched your search
@@ -518,7 +518,7 @@ describe("App layout", () => {
|
||||
);
|
||||
expect(updateCall).toBeTruthy();
|
||||
const headers = updateCall?.[1]?.headers as Record<string, string>;
|
||||
expect(JSON.parse(headers["X-Nanobot-Automation-Values"])).toEqual({
|
||||
expect(JSON.parse(decodeURIComponent(headers["X-Nanobot-Automation-Values"]))).toEqual({
|
||||
name: "Past one-shot",
|
||||
message: "Updated one-shot message",
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user