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 b7b14aa commit 0a88f94Copy full SHA for 0a88f94
packages/main/src/components/VariantManagement/index.tsx
@@ -92,7 +92,9 @@ const VariantManagement: FC<VariantManagementPropTypes> = forwardRef(
92
}
93
94
useEffect(() => {
95
- setSelectedKey(initialSelectedKey);
+ if (initialSelectedKey) {
96
+ setSelectedKey(initialSelectedKey);
97
+ }
98
}, [initialSelectedKey, setSelectedKey]);
99
100
const handleCancelButtonClick = useCallback(() => {
0 commit comments