Skip to content

Commit

Permalink
fix showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
SazukinPavel committed Jan 16, 2025
1 parent 492a31f commit 7338508
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions admin-ui/src/components/ServicesProvider/info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ const plansParams = computed(() => {
type.push("ione-vpn");
}
if (provider.value.type === "empty") {
type.push("vpn");
}
return {
showDeleted: false,
excludeUuids: relatedPlans.value?.map((p) => p.uuid) || [],
Expand Down
6 changes: 4 additions & 2 deletions admin-ui/src/views/ShowcaseCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ const fetchPlans = async () => {
try {
await Promise.all(
showcase.value.items.map(async ({ servicesProvider: sp }) => {
showcase.value.items.map(async (item) => {
let sp = item.servicesProvider;
try {
if (sp && !plansBySpMap.value.has(sp)) {
plansBySpMap.value.set(
Expand All @@ -401,7 +403,7 @@ const fetchPlans = async () => {
}
};
watch(showcase.value.items, fetchPlans);
watch(() => showcase.value.items, fetchPlans,{deep:true});
</script>
<style scoped lang="scss">
Expand Down

0 comments on commit 7338508

Please sign in to comment.