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.cjs CHANGED
@@ -1823,7 +1823,7 @@ function renderReportToHtml(report, options = {}) {
1823
1823
  const parsed = unwrapReport(report);
1824
1824
  const rawReport = parsed.ok ? parsed.data : void 0;
1825
1825
  const interactive = islandScript.length > 0 && rawReport !== void 0;
1826
- const dataScript = interactive ? `<script type="application/json" id="${DATA_ID}">${escapeJsonForScript(JSON.stringify(rawReport))}</script>` : "";
1826
+ const dataScript = rawReport !== void 0 ? `<script type="application/json" id="${DATA_ID}">${escapeJsonForScript(JSON.stringify(rawReport))}</script>` : "";
1827
1827
  const historyScript = interactive && scenarioHistory && Object.keys(scenarioHistory).length > 0 ? `<script type="application/json" id="${HISTORY_ID}">${escapeJsonForScript(JSON.stringify(scenarioHistory))}</script>` : "";
1828
1828
  const islandTag = interactive ? `<script>${islandScript}</script>` : "";
1829
1829
  const cdnBody = interactive ? "" : cdn.body;