Skip to content

Commit

Permalink
fix: match server subfiles with forward slash
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Sep 16, 2021
1 parent 6190590 commit c2489a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/metadataKeys.ts
Expand Up @@ -10,7 +10,7 @@ import { getMetadataKey } from './remoteSourceTrackingService';
// LWC can have child folders (ex: dynamic templates like /templates/noDataIllustration.html
const pathAfterFullName = (fileResponse: RemoteSyncInput): string =>
fileResponse && fileResponse.filePath
? fileResponse.filePath.substr(fileResponse.filePath.indexOf(fileResponse.fullName))
? fileResponse.filePath.substr(fileResponse.filePath.indexOf(fileResponse.fullName)).replace('\\', '/')
: '';

// handle all "weird" type/name translation between SourceMember and SDR FileResponse
Expand Down

0 comments on commit c2489a6

Please sign in to comment.