medialab / fonio

a collaborative scholarly text editor allowing to build static websites
https://fonio.medialab.sciences-po.fr/demo
GNU Affero General Public License v3.0
67 stars 6 forks source link

bug when deleting advanced bloc if contextualisation has been deleted before #334

Closed paulgirard closed 4 years ago

paulgirard commented 4 years ago

To Reproduce

  1. create an advanced bloc (custom iframe in my case)
  2. add it to a story
  3. remove it from the story 4 delete the advanced bloc

Tried in the same story / session but we two different URL in the iframe.

Observed behavior Story can't be saved with a nice popup message.

Stacktrace : payload: {…} errors: {…} errors: Array [ "invalid contextualizations entities" ] id: "ba477c13-5519-4723-959a-933f0d6a2c4d" success: false

: Object { … } id: "ba477c13-5519-4723-959a-933f0d6a2c4d" : Object { … } type: "SAVE_STORY_FAIL"