Skip to content

Commit 717b191

Browse files
committed
Fix error when setting compound or compound array property to None
1 parent 5814699 commit 717b191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: plotly/basedatatypes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2981,7 +2981,7 @@ def _set_compound_prop(self, prop, val):
29812981
# ------------------
29822982
if not self._in_batch_mode:
29832983
if not new_dict_val:
2984-
if prop in self._props:
2984+
if self._props and prop in self._props:
29852985
self._props.pop(prop)
29862986
else:
29872987
self._init_props()
@@ -3055,7 +3055,7 @@ def _set_array_prop(self, prop, val):
30553055
# ------------------
30563056
if not self._in_batch_mode:
30573057
if not new_dict_vals:
3058-
if prop in self._props:
3058+
if self._props and prop in self._props:
30593059
self._props.pop(prop)
30603060
else:
30613061
self._init_props()

0 commit comments

Comments
 (0)