We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbca07b commit 3e65ed2Copy full SHA for 3e65ed2
.changeset/twelve-dogs-refuse.md
@@ -0,0 +1,5 @@
1
+---
2
+"flowbite-react": patch
3
4
+
5
+Fix CLI crash by safely iterating over Map values in init logger
packages/ui/src/cli/utils/create-init-logger.ts
@@ -20,7 +20,16 @@ export function createInitLogger(config: Config) {
20
);
21
},
22
get showWarning() {
23
- return this.checkedMap.values().find((value) => value) === undefined;
+ let hasChecked = false;
24
25
+ for (const value of this.checkedMap.values()) {
26
+ if (value) {
27
+ hasChecked = true;
28
+ break;
29
+ }
30
31
32
+ return !hasChecked;
33
34
/**
35
* Checks if `<ThemeInit />` component is used in the given file content
0 commit comments