Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 42f39a0

Browse files
committed
control undefined options
1 parent a09feb2 commit 42f39a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function setOptionsOfSelectDataType(
3838
let match = options.find(
3939
(option: { label: string }) => option.label === rowValue
4040
);
41-
if (!match) {
41+
if (!match && rowValue !== undefined && rowValue !== "") {
4242
options.push({ label: rowValue, backgroundColor: randomColor() });
4343
}
4444
});

0 commit comments

Comments
 (0)