fix: Double encoding in addAppMutation (#15303)
* Remove double encoding * Add test for OAuth page * Add tests * Remove test from integrations.e2e
This commit is contained in:
1 parent
822f0204a6
commit
d2f76edfd6
2 files changed
+14
-1
No files matched your search
@@ -88,7 +88,7 @@ function useAddAppMutation(_type: App["type"] | null, allOptions?: UseAddAppMuta
|
||||
...(defaultInstall && { defaultInstall }),
|
||||
};
|
||||
|
||||
const stateStr = encodeURIComponent(JSON.stringify(state));
|
||||
const stateStr = JSON.stringify(state);
|
||||
const searchParams = generateSearchParamString({ stateStr, teamId, returnTo });
|
||||
|
||||
const res = await fetch(`/api/integrations/${type}/add${searchParams}`);
|
||||
|
||||
Reference in new issue
Block a user