mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:55:33 +00:00
fix: has one bug (#478)
This commit is contained in:
parent
000e4e50b8
commit
fe02557003
@ -297,7 +297,7 @@ export async function updateSingleAssociation(
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
dataKey = association.targetKey;
|
dataKey = association.targetKey;
|
||||||
} else {
|
} else {
|
||||||
M = association.source as ModelCtor<Model>;
|
M = association.target as ModelCtor<Model>;
|
||||||
dataKey = M.primaryKeyAttribute;
|
dataKey = M.primaryKeyAttribute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user