Skip to content

Commit c207cb7

Browse files
authored
clean up library ID returned by resolveLibraryForNode
1 parent 819a859 commit c207cb7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/helpers/notificationEffects.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ export async function resolveLibraryForNode(
9292
const candidateId = pathToLibraryId(extras.path);
9393
if (!candidateId) return { libId: null, status: 'unknown' };
9494

95+
const cleanLibId = normalizeLibraryName(candidateId.replace(/^xai_components[\/\\]/i, ''));
96+
9597
const idx = await loadLibraryIndex();
96-
const entry = idx.get(candidateId);
97-
return computeStatusFromEntry(entry, candidateId);
98+
const entry = idx.get(cleanLibId);
99+
return computeStatusFromEntry(entry, cleanLibId);
98100
}
99101

100102
export async function showInstallForRemoteLibrary(args: {

0 commit comments

Comments
 (0)