Skip to content

Commit

Permalink
fix(codemod): fix import statment for UI5 Web Component enums (#6084)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Jul 15, 2024
1 parent 079ed9a commit b3a5aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/scripts/codemod/transforms/v2/main.cts
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export default function transform(file: FileInfo, api: API, options?: Options):
const currentImportStatementsLength = imports.length;

const newImportDeclaration = j.importDeclaration(
[j.importSpecifier(j.identifier(enumName), j.identifier(enumName))],
[j.importDefaultSpecifier(j.identifier(enumName))],
j.literal(newImport)
);

Expand Down

0 comments on commit b3a5aed

Please sign in to comment.