Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit d1a53d1

Browse files
author
Matthias Frank
committed
fix: refactor delete-components to use component names instead of ids
1 parent 9e5ba2d commit d1a53d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tasks/delete-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const deleteComponentsReversed = async (api, components, spaceComponents, dryrun
102102

103103
const deleteComponentAndSkip = async (api, c, dryrun) => {
104104
try {
105-
return await deleteComponent(api, { comp: c.id, dryrun: dryrun })
105+
return await deleteComponent(api, { comp: c.name, dryrun: dryrun })
106106
} catch (e) {
107107
console.log(chalk.red('-') + ' Error deleting component ' + chalk.blue(c.name) + '! Skipped...')
108108
}

0 commit comments

Comments
 (0)