Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Jul 9, 2024
1 parent 2eef751 commit a517186
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/hooks/useClientErrorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,6 @@ export const useClientErrorHandler = (): ClientErrorHandler => {
if (!drive) return;
await removeTrigger(driveId, trigger.id);

// rename the drive old name (old)
// check how many drives with the same name and old tag exist
const amountOfCopies = documentDrives.filter(d => {
return d.state.global.name.includes(
drive.state.global.name,
);
}).length;
await renameDrive(
driveId,
drive.state.global.name + ` (${drive.state.global.id})`,
Expand All @@ -132,7 +125,6 @@ export const useClientErrorHandler = (): ClientErrorHandler => {
trigger.data.url,
drive.state.global.slug,
);
// if newId provided add new remote drive
if (newId) {
const urlParts = trigger.data.url.split('/');
urlParts[urlParts.length - 1] = newId;
Expand Down

0 comments on commit a517186

Please sign in to comment.