mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -717,6 +717,11 @@ export class ItemsService<Item extends AnyItem = AnyItem> implements AbstractSer
|
||||
}
|
||||
|
||||
for (const [name, field] of fields) {
|
||||
if (this.schema.collections[this.collection].primary === name) {
|
||||
defaults[name] = null;
|
||||
continue;
|
||||
}
|
||||
|
||||
defaults[name] = field.defaultValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user