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