Skip to content

fix(*): repply local editor data after ai toggle, warn other users is ai off

Grigor Malo requested to merge ai-setting-update-fix into develop

#828 (closed)

BUGS:

  1. when toggling AI setting, sometime some of the content in the editor gets lost
  2. when owner toggles AI setting, another user working on a chapter gets bumped up to the top of the editor

FIXES:

  • when AI setting is updated, reapply local editor content via props to the Editor component (fixes 1)
  • refetch book settings (to show the magic stick in the toolbar) after settings update only if you're the owner
  • to adjust for the change in the point above, if setting was ON, another user is working on a chapter, and owner turns it OFF, show error modal when the user tries to call chat gpt api
  • prevent a 'book rename' event from being fired when toggling AI settings, since it gets automatically fired when editor is remounted
Edited by Dione Mentis

Merge request reports