Skip to content

Commit

Permalink
fix url validation when url not set
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Sep 5, 2024
1 parent 7a5053f commit 137ad57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ export const warnings = {
validation: async (val) => {
const processedVal = await Promise.all(
val.map(async (dist) => {
if (!dist.url){
return { ...dist, status: false };
}
const res = await checkURLActive(dist.url);
return {...dist, status:res.data};
})
Expand Down

0 comments on commit 137ad57

Please sign in to comment.