fix: ids not empty
This commit is contained in:
parent
b81b83d3f3
commit
30b006bb45
@ -238,7 +238,7 @@ export class CollectionModel extends BaseModel {
|
||||
ids.push(model.id);
|
||||
}
|
||||
}
|
||||
if (collection.get('internal')) {
|
||||
if (ids.length && collection.get('internal')) {
|
||||
await collection.updateAssociations({
|
||||
[key]: ids,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user