Skip to content

Commit

Permalink
Fix renaming file (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Dec 3, 2024
1 parent 5079613 commit efa5120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docprovider/src/ydrive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export class YDrive extends Drive implements ICollaborativeDrive {
// A change in hash signifies that a save occurred on the server-side
// (e.g. a collaborator performed the save) - we want to notify the
// observers about this change so that they can store the new hash value.
const model = await this.get(options.path, { content: false });
const newPath = sharedModel.state.path ?? options.path;
const model = await this.get(newPath as string, { content: false });

this._ydriveFileChanged.emit({
type: 'save',
Expand Down

0 comments on commit efa5120

Please sign in to comment.