Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan Compare fix #739

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/src/components/summaryitemcomponents/CardSummary.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<button
type="button"
class="bg-white hover:bg-gray-800 hover:text-white font-semibold py-2 px-4 border rounded"
on:click={navigateTo(`/scanCompare/${value.partitionKey}/${convertSpecialCharUrl(value.url.slice(12))}/${value.buildDate}`)}
on:click={navigateTo(`/scanCompare/${value.partitionKey}/${convertSpecialCharUrl(value.url)}/${value.buildDate}`)}
>
<i class="fas fa-code-compare"></i>
{previousScans[0].runId !== value.runId ? "Compare to latest scan" : "Compare to previous scan"}
Expand Down
3 changes: 1 addition & 2 deletions ui/src/stores.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ export const getLatestBuildDetails = async (api, url) => {
};

export const getAllScanSummaryFromUrl = async (api, url) => {
const fullUrl = `https%3A%2F%2Fwww.${url}`
const res = await fetch(`${CONSTS.API}/api/scanSummaryFromUrl/${api}/${fullUrl}`);
const res = await fetch(`${CONSTS.API}/api/scanSummaryFromUrl/${api}/${url}`);
const result = await res.json();

if (res.ok) {
Expand Down
Loading