Skip to content

Commit

Permalink
fix issue with imports that dont have import name (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitdallas authored Oct 16, 2023
1 parent 93e0710 commit 691da85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
if (
node.specifiers.find(
(specifier) =>
specifier.imported.name ===
specifier.imported?.name ===
chartThemeVariantImport[0].imported.name
)
)
Expand Down
2 changes: 2 additions & 0 deletions test/test.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import * as React from 'react';
import {
Chart,
ChartLegend,
DarkBlueColorTheme,
getCustomTheme,
getResizeObserver,
LightBlueColorTheme,
ChartThemeVariant,
} from "@patternfly/react-charts";
import { CodeEditor } from "@patternfly/react-code-editor";
import { FrogIcon } from "@patternfly/react-icons";
Expand Down

0 comments on commit 691da85

Please sign in to comment.