executable-stories-react 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ssr.js CHANGED
@@ -1802,7 +1802,7 @@ function renderReportToHtml(report, options = {}) {
1802
1802
  const parsed = unwrapReport(report);
1803
1803
  const rawReport = parsed.ok ? parsed.data : void 0;
1804
1804
  const interactive = islandScript.length > 0 && rawReport !== void 0;
1805
- const dataScript = interactive ? `<script type="application/json" id="${DATA_ID}">${escapeJsonForScript(JSON.stringify(rawReport))}</script>` : "";
1805
+ const dataScript = rawReport !== void 0 ? `<script type="application/json" id="${DATA_ID}">${escapeJsonForScript(JSON.stringify(rawReport))}</script>` : "";
1806
1806
  const historyScript = interactive && scenarioHistory && Object.keys(scenarioHistory).length > 0 ? `<script type="application/json" id="${HISTORY_ID}">${escapeJsonForScript(JSON.stringify(scenarioHistory))}</script>` : "";
1807
1807
  const islandTag = interactive ? `<script>${islandScript}</script>` : "";
1808
1808
  const cdnBody = interactive ? "" : cdn.body;