Skip to content

Commit 5fa07e2

Browse files
committed
update example to use item sectionID and file ID and not hardcoded strings
1 parent 0ef02f2 commit 5fa07e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ async function createAndAttachAndDeleteFileFieldItem(client) {
368368
// Delete a file field from an item
369369
let deletedItem = await client.items.files.delete(
370370
attachedItem,
371-
"custom section",
372-
"new_file_field",
371+
attachedItem.files[1].sectionId,
372+
attachedItem.files[1].fieldId,
373373
);
374374
// [developer-docs.sdk.js.delete-file-field-item]-end
375375

0 commit comments

Comments
 (0)