- Store editing message object reference using useRef to avoid ID conflicts - Use object reference comparison first before falling back to ID matching - Apply fix to both save and cancel operations in message editing - Clear reference after edit completion to prevent stale object issues Previously, when editing imported messages that contained duplicate IDs, the findIndex operation would match the first occurrence rather than the intended message, causing conversation history truncation when saving edits. This change stores and uses object references for accurate message identification during the editing process.
React Template
Basic Usages
# Runs the app in the development mode
npm start
# Builds the app for production to the `build` folder
npm run build
If you want to change the default server, please set REACT_APP_SERVER environment variables before build,
for example: REACT_APP_SERVER=http://your.domain.com.
Before you start editing, make sure your Actions on Save options have Optimize imports & Run Prettier enabled.