Skip to content

Commit

Permalink
fix: exampleUrls
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 17, 2024
1 parent 206d9b5 commit cc19cd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/snapshot/SearchCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ const generateRules = errorTry(
}) => {
const imageId = snapshotImageId[snapshot.value.id];
const importId = snapshotImportId[snapshot.value.id];
const zipUrl = importId ? getImportUrl(importId) : undefined;
const snapshotUrls = importId ? getImportUrl(importId) : undefined;
const exampleUrls = imageId ? getImagUrl(imageId) : undefined;
const s = result.selector;
const t = result.nodes[0].at(-1)!;
Expand All @@ -180,8 +181,8 @@ const generateRules = errorTry(
fastQuery: fastQuery || undefined,
activityIds: snapshot.value.activityId,
matches: s.toString(),
exampleUrls: getImagUrl(imageId),
snapshotUrls: zipUrl,
exampleUrls,
snapshotUrls,
},
],
},
Expand Down

0 comments on commit cc19cd9

Please sign in to comment.