🚸 (sheets) Auto set credentials after oauth…
This commit is contained in:
@ -79,13 +79,15 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||||||
return {
|
return {
|
||||||
...group,
|
...group,
|
||||||
blocks: group.blocks.map((block) => {
|
blocks: group.blocks.map((block) => {
|
||||||
if (block.id !== blockId || !('options' in block)) return block
|
if (block.id !== blockId) return block
|
||||||
return {
|
return {
|
||||||
...block,
|
...block,
|
||||||
options: {
|
options:
|
||||||
...block.options,
|
'options' in block
|
||||||
credentialsId,
|
? { ...block.options, credentialsId }
|
||||||
},
|
: {
|
||||||
|
credentialsId,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user