Bugfixing a refaktoring
This commit is contained in:
@@ -9,7 +9,7 @@ import {isRequired} from "src/composables/form/rules";
|
||||
import RichTextEditor from "components/inputs/RichTextEditor.vue";
|
||||
|
||||
const props = defineProps({
|
||||
event: {
|
||||
organization: {
|
||||
type: Object
|
||||
},
|
||||
isRequestPending
|
||||
@@ -24,8 +24,8 @@ const rules = {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (props.event) {
|
||||
setDefaultData(formData, props.event);
|
||||
if (props.organization) {
|
||||
setDefaultData(formData, props.organization);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user