Skip to content

Commit

Permalink
Fix bug of using props before declaration in UserModal.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodeholic authored Aug 15, 2024
1 parent 6d8270d commit 9ae723e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions backend/src/views/Users/UserModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ import CustomInput from "../../components/core/CustomInput.vue";
import store from "../../store/index.js";
import Spinner from "../../components/core/Spinner.vue";

const props = defineProps({
modelValue: Boolean,
user: {
required: true,
type: Object,
}
})

const user = ref({
id: props.user.id,
name: props.user.name,
Expand All @@ -85,13 +93,6 @@ const user = ref({

const loading = ref(false)

const props = defineProps({
modelValue: Boolean,
user: {
required: true,
type: Object,
}
})

const emit = defineEmits(['update:modelValue', 'close'])

Expand Down

0 comments on commit 9ae723e

Please sign in to comment.