Skip to content

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
  • Loading branch information
Grace Guo authored Jul 26, 2018
1 parent 0407f78 commit deb3564
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 deb3564

Please sign in to comment.