Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "fix: media query should not throw error when has empty axis, related to #3575\n\n",
"type": "none",
"packageName": "@visactor/vchart"
}
],
"packageName": "@visactor/vchart",
"email": "dingling112@gmail.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const executeMediaQueryActionFilterType = <T extends Record<string, unkno
const infoList = array(chartSpecInfo.component?.[specKey] ?? []);
array(chartSpec[specKey] ?? []).forEach((componentSpec, i) => {
const specInfo = infoList[i];
if (componentTypes.includes(specInfo.type as ComponentTypeEnum)) {
if (specInfo && componentTypes.includes(specInfo.type as ComponentTypeEnum)) {
result.modelInfo.push({
...specInfo,
spec: componentSpec
Expand Down