mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
fix: Fix link Model-Relation
This commit is contained in:
@@ -393,8 +393,8 @@ export class RecordsPage extends Page {
|
||||
// Save relations
|
||||
for (const [relation, relatedModel] of Object.entries(relations)) {
|
||||
const response = await relatedModel.save();
|
||||
if (response.getModelId) {
|
||||
model.setRelation(relation, response.getModelId());
|
||||
if (response.getModelId()) {
|
||||
model.setRelation(relation, response.getModel());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user