Fixed Loading in Edit
This commit is contained in:
@@ -39,6 +39,8 @@ const setupPage = async (sort_column = null, sort_direction = null) => {
|
|||||||
//Load Data for Edit
|
//Load Data for Edit
|
||||||
item.value = JSON.stringify(await useEntities(type).selectSingle(route.params.id))
|
item.value = JSON.stringify(await useEntities(type).selectSingle(route.params.id))
|
||||||
|
|
||||||
|
console.log(item.value)
|
||||||
|
|
||||||
} else if (mode.value === "create") {
|
} else if (mode.value === "create") {
|
||||||
//Load Data for Create
|
//Load Data for Create
|
||||||
item.value = JSON.stringify({})
|
item.value = JSON.stringify({})
|
||||||
@@ -65,7 +67,7 @@ setupPage()
|
|||||||
:platform="platform"
|
:platform="platform"
|
||||||
/>
|
/>
|
||||||
<EntityEdit
|
<EntityEdit
|
||||||
v-else-if="(mode === 'edit' || mode === 'create')"
|
v-else-if="loaded && (mode === 'edit' || mode === 'create')"
|
||||||
:type="route.params.type"
|
:type="route.params.type"
|
||||||
:item="item"
|
:item="item"
|
||||||
:mode="mode"
|
:mode="mode"
|
||||||
|
|||||||
Reference in New Issue
Block a user