Skip to content

Conversation

@akretz
Copy link
Contributor

@akretz akretz commented Aug 28, 2025

removeEntity() and insertEntity() both operate based on the FileEntity._id. If we rename a file, its _id stays the same. We must remove first and then insert. Otherwise the insert doesn't do anything and the file just gets removed.

This fixes #289

@iamhyc
Copy link
Member

iamhyc commented Sep 1, 2025

Thanks for your contribution. I think you are right. I need to check it in VS Code and then merge it.

@iamhyc iamhyc merged commit 1018f4b into overleaf-workshop:master Sep 3, 2025
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File rename makes files disappear

2 participants