Skip to content

Commit

Permalink
[bugfix] iframe and markup are broken (apache#4082)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored and michellethomas committed May 23, 2018
1 parent 4776e63 commit 484f55e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def get_payload(self, force=False):
df = self.get_df()
if not self.error_message:
data = self.get_data(df)
rowcount = len(df.index)
rowcount = len(df.index) if df is not None else 0
except Exception as e:
logging.exception(e)
if not self.error_message:
Expand Down Expand Up @@ -523,7 +523,7 @@ class MarkupViz(BaseViz):
is_timeseries = False

def get_df(self):
return True
return None

def get_data(self, df):
markup_type = self.form_data.get('markup_type')
Expand Down

0 comments on commit 484f55e

Please sign in to comment.