bugfix: child key not constructed correctly
This commit is contained in:
parent
8e322e314b
commit
721569c2d4
|
@ -31,12 +31,14 @@
|
||||||
? selectedModel.fields.map(({ name }) => name)
|
? selectedModel.fields.map(({ name }) => name)
|
||||||
: []
|
: []
|
||||||
|
|
||||||
$: currentCollectionKey =
|
|
||||||
$store.selectedRecord
|
function getCurrentCollectionKey(selectedRecord) {
|
||||||
? joinKey($store.selectedRecord.key, selectedModel.collectionName)
|
return selectedRecord
|
||||||
|
? joinKey(selectedRecord.key, selectedModel.collectionName)
|
||||||
: joinKey(selectedModel.collectionName)
|
: joinKey(selectedModel.collectionName)
|
||||||
|
}
|
||||||
|
|
||||||
$: editingRecord = editingRecord || record || getNewRecord(selectedModel, currentCollectionKey)
|
$: editingRecord = editingRecord || record || getNewRecord(selectedModel, getCurrentCollectionKey($backendUiStore.selectedRecord))
|
||||||
|
|
||||||
function closed() {
|
function closed() {
|
||||||
editingRecord = null
|
editingRecord = null
|
||||||
|
|
Loading…
Reference in New Issue