Skip to content

Commit 3e0f086

Browse files
committed
fix: hide icon from visualization when option is toggled
This didn't work before because the icons option was removed from the options object, but when the current object was merged with the new options, it retained the original value.
1 parent 30a45fc commit 3e0f086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/current.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const getOptionsFromUi = (ui) => {
8484
optionsFromUi.icons = [{ type: 'DATA_ITEM' }]
8585
} else {
8686
// if options is not enabled, do not pass the "internal" boolean value
87-
delete optionsFromUi.icons
87+
optionsFromUi.icons = undefined
8888
}
8989

9090
// nested options under reportingParams

0 commit comments

Comments
 (0)