Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[migration] bug fix in dashboard migration (bebcf3fed1fe_) (apache#5497)
Browse files Browse the repository at this point in the history
fix a bug in handle empty rows

(cherry picked from commit 7ff02c0)
  • Loading branch information
Grace Guo committed Jul 26, 2018
1 parent 6c9a60e commit 83aeade
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,13 +351,13 @@ def convert(positions, level, parent, root):
# they can be a list of charts, or arranged in columns, or mixed
for layer in layers:
if len(layer) == 0:
return
continue

if len(layer) == 1 and parent['type'] == COLUMN_TYPE:
chart_holder = get_chart_holder(layer[0])
root[chart_holder['id']] = chart_holder
parent['children'].append(chart_holder['id'])
return
continue

# create a new row
row_container = get_row_container()
Expand Down

0 comments on commit 83aeade

Please sign in to comment.