You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] Unable to edit previously created masks
Please enter x in the square brackets below to indicate that you already know the relevant content.
I confirm that I have searched for this feedback issue in FAQ, no answer found;
I confirm that I have searched for this feedback issue in the Issues list (including those that have been closed), but have not found an answer.
I confirm that I have searched for this feedback issue in Vercel Tutorial , did not find an answer.
Describe problem
The "Edit" button of the old mask does not respond after being clicked
But newly created masks can be edited.
After checking the code, it is speculated that after the mask id is migrated to nanoid (8e4743e ), the key of the old mask object is still a digital id, causing the mask id != mask The object key, the mask object cannot be obtained through the mask id, and the editing window cannot be opened.
请在下方中括号内输入 x 来表示你已经知晓相关内容。
描述问题
旧面具的”编辑“按钮被点击后无反应
但是新建的面具可以编辑。
查阅代码后,推测是面具id迁移为nanoid( 8e4743e )后,旧面具对象的key仍然为数字id,造成面具id!=面具对象key,无法通过面具id获取到面具对象,进而无法打开编辑窗口。
https://github.com/Yidadaa/ChatGPT-Next-Web/blob/c44454bf744ce7b23430c9145365440079fdc3d8/app/store/mask.ts#L85-L87
面具id迁移为nanoid后的
Local Storage.mask-store
:需要再次迁移,使面具对象key=面具id。
如何复现
点击旧面具的”编辑“按钮。
截图
控制台无输出。
一些必要的信息
The text was updated successfully, but these errors were encountered: