Skip to content

Commit 3652ad6

Browse files
Potential fix for code scanning alert no. 10: Assignment to constant
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 8cd1bf1 commit 3652ad6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/Products/ProductsShowAll.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,15 @@ import ProductPrice from "@/components/Products/ProductPrice.vue";
3333
const props = defineProps({
3434
categoryId: { type: String, required: false },
3535
categorySlug: { type: String, required: false },
36-
});
37-
38-
const config = useRuntimeConfig();
39-
40-
const props = defineProps({
4136
products: {
4237
type: Array,
4338
required: true,
4439
default: () => [],
4540
},
4641
});
4742
43+
const config = useRuntimeConfig();
44+
4845
const products = computed(() => props.products);
4946
5047
/**

0 commit comments

Comments
 (0)