Skip to content

Commit bbb576f

Browse files
author
aadamgough
committed
fixed greptile comments
1 parent bc305b3 commit bbb576f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

apps/sim/blocks/blocks/sharepoint.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Return ONLY the template name - no explanations, no quotes, no extra text.`,
165165
},
166166

167167
{
168-
id: 'pageContent',
168+
id: 'columnDefinitions',
169169
title: 'Column Definitions',
170170
type: 'long-input',
171171
placeholder: 'Optional: Define custom columns as JSON array',
@@ -402,6 +402,7 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
402402
includeItems,
403403
uploadFiles,
404404
files,
405+
columnDefinitions,
405406
...others
406407
} = rest as any
407408

@@ -449,7 +450,7 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
449450

450451
// Handle file upload files parameter
451452
const fileParam = uploadFiles || files
452-
const baseParams = {
453+
const baseParams: Record<string, any> = {
453454
credential,
454455
siteId: effectiveSiteId || undefined,
455456
pageSize: others.pageSize ? Number.parseInt(others.pageSize as string, 10) : undefined,
@@ -466,6 +467,10 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
466467
baseParams.files = fileParam
467468
}
468469

470+
if (columnDefinitions) {
471+
baseParams.pageContent = columnDefinitions
472+
}
473+
469474
return baseParams
470475
},
471476
},
@@ -474,7 +479,10 @@ Return ONLY the JSON object - no explanations, no markdown, no extra text.`,
474479
operation: { type: 'string', description: 'Operation to perform' },
475480
credential: { type: 'string', description: 'Microsoft account credential' },
476481
pageName: { type: 'string', description: 'Page name' },
477-
pageContent: { type: 'string', description: 'Page content' },
482+
columnDefinitions: {
483+
type: 'string',
484+
description: 'Column definitions for list creation (JSON array)',
485+
},
478486
pageTitle: { type: 'string', description: 'Page title' },
479487
pageId: { type: 'string', description: 'Page ID' },
480488
siteSelector: { type: 'string', description: 'Site selector' },

0 commit comments

Comments
 (0)