Skip to content

Commit

Permalink
fix: Use proper dict retrieval. #441
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Jul 21, 2023
1 parent 26e8342 commit 41e82eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py/h2o_lightwave/h2o_lightwave/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def add(self, key: str, card: Any) -> Ref:
data = []
bufs = []

_fill_data_buffers(props, data, bufs, [], props['view'] == 'form')
_fill_data_buffers(props, data, bufs, [], props.get('view') == 'form')

for k, v in data:
_del_dict_key(props, k.split('.'))
Expand Down
2 changes: 1 addition & 1 deletion py/h2o_wave/h2o_wave/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def add(self, key: str, card: Any) -> Ref:

data = []
bufs = []
_fill_data_buffers(props, data, bufs, [], props['view'] == 'form')
_fill_data_buffers(props, data, bufs, [], props.get('view') == 'form')

for k, v in data:
_del_dict_key(props, k.split('.'))
Expand Down

0 comments on commit 41e82eb

Please sign in to comment.