Skip to content

Commit d1b8778

Browse files
waleedlatif1claude
andcommitted
fix(microsoft-excel): clear manualDriveId when fileSource changes
Add dependsOn: ['fileSource'] to manualDriveId so its value is cleared when switching from SharePoint back to OneDrive. Without this, the stale driveId would still be serialized and forwarded to getItemBasePath, routing through the SharePoint drive path instead of me/drive. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 16ad6ce commit d1b8778

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/sim/blocks/blocks/microsoft_excel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ export const MicrosoftExcelV2Block: BlockConfig<MicrosoftExcelV2Response> = {
457457
canonicalParamId: 'driveId',
458458
placeholder: 'Enter the SharePoint drive ID',
459459
condition: { field: 'fileSource', value: 'sharepoint' },
460+
dependsOn: ['fileSource'],
460461
mode: 'advanced',
461462
},
462463
// Manual Spreadsheet ID (advanced mode)

0 commit comments

Comments
 (0)