mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-15 01:58:59 +08:00
fix: use default value for when specified new entity id
This commit is contained in:
@@ -150,7 +150,7 @@ export function EntityForm<M>({
|
||||
*/
|
||||
let baseDataSourceValues: Partial<EntityValues<M>>;
|
||||
if ((status === "existing" || status === "copy") && entity) {
|
||||
baseDataSourceValues = entity.values ?? {};
|
||||
baseDataSourceValues = entity.values ?? initEntityValues(schema, path);
|
||||
} else if (status === "new") {
|
||||
baseDataSourceValues = initEntityValues(schema, path);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user