Skip to content

Commit c73d88b

Browse files
committed
Move product variable declaration after props
1 parent cb50a12 commit c73d88b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

backend/src/views/Products/ProductModal.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ import CustomInput from "../../components/core/CustomInput.vue";
7777
import store from "../../store/index.js";
7878
import Spinner from "../../components/core/Spinner.vue";
7979
80-
const product = ref({
81-
id: props.product.id,
82-
title: props.product.title,
83-
image: props.product.image,
84-
description: props.product.description,
85-
price: props.product.price
86-
})
87-
8880
const loading = ref(false)
8981
9082
const props = defineProps({
@@ -95,6 +87,14 @@ const props = defineProps({
9587
}
9688
})
9789
90+
const product = ref({
91+
id: props.product.id,
92+
title: props.product.title,
93+
image: props.product.image,
94+
description: props.product.description,
95+
price: props.product.price
96+
})
97+
9898
const emit = defineEmits(['update:modelValue', 'close'])
9999
100100
const show = computed({

0 commit comments

Comments
 (0)