From 772e3569cda5005862d59867d2b7db383b738a1a Mon Sep 17 00:00:00 2001 From: hunxjunedo Date: Fri, 8 Nov 2024 15:44:04 +0500 Subject: [PATCH] fix defaultprops codemod error msg --- packages/studio-server/src/codemods/update-default-props.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/studio-server/src/codemods/update-default-props.ts b/packages/studio-server/src/codemods/update-default-props.ts index 29a800de536..5318aee592d 100644 --- a/packages/studio-server/src/codemods/update-default-props.ts +++ b/packages/studio-server/src/codemods/update-default-props.ts @@ -111,7 +111,7 @@ export const updateDefaultProps = async ({ defaultPropsValue.type !== 'TSAsExpression' ) { throw new Error( - `\`defaultProps\` prop must be a hardcoded value in the tag with the ID "${defaultPropsValue.type}".`, + `\`defaultProps\` prop must be a hardcoded value in the tag with the ID "${compositionId}".`, ); }