@mintlify/previewing 4.0.1438 → 4.0.1440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -225,7 +225,6 @@ const onUnlinkEvent = async (filename, triggerRefresh, options) => {
225
225
  await syncImportedFileLocations(importChanges);
226
226
  return;
227
227
  }
228
- const targetPath = getTargetPath(potentialCategory, filename);
229
228
  if (potentialCategory === 'page' ||
230
229
  potentialCategory === 'snippet' ||
231
230
  potentialCategory === 'mintConfig' ||
@@ -236,7 +235,7 @@ const onUnlinkEvent = async (filename, triggerRefresh, options) => {
236
235
  potentialCategory === 'js' ||
237
236
  potentialCategory === 'generatedStaticFile' ||
238
237
  potentialCategory === 'skillFile') {
239
- await fse.remove(targetPath);
238
+ await fse.remove(getTargetPath(potentialCategory, filename));
240
239
  }
241
240
  switch (potentialCategory) {
242
241
  case 'mintConfig':