klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 296 forks source link

Web version: after duplicating a story, reloading the Story list causes contents of original story to be deleted #1371

Open aceradanny opened 1 year ago

aceradanny commented 1 year ago

Describe the bug.

After creating a copy of a story (via the "Duplicate" button), if the Story list view is refreshed (i.e. the browser tab is reloaded, or the Story list is visited in a new tab), the entire contents of the original story disappear.

Steps to reproduce:

  1. In the Story list view, select a story (e.g. "My Story") and click the "Duplicate" button at top. A new story will appear in the Story list (e.g. "My Story 1"), with the same contents (passages, etc) as the original.
  2. Reload the browser tab. Now in the Story list, the card of the original story ("My Story") will show 0 passages.
  3. Open the original story: the story map will look like a newly-created story (with a single "untitled" empty passage).

The same results are produced if in step 2 you instead open a new browser tab and use it to visit the Twine Story list.

Expected behavior:

The contents of the original story should be preserved after duplicating it and then reloading the browser tab.

Additional context on this problem.

This problem was reproduced in updated versions of both Chrome and Firefox, on multiple computer types (Chromebook, Mac, Windows).

Twine version number

2.6.0

Does this problem occur with the web version of Twine or the desktop app?

Web

What operating system does this problem occur on?

macOS

If this problem is occurring with the web version of Twine, what browser does it occur on?

Chrome/Chromium

Presubmission checklist

starchyrepair commented 1 year ago

For me, it doesn't disappear, it just throws errors and refuses to execute. Similar problem.