check for createdData
This commit is contained in:
@@ -75,7 +75,7 @@ export abstract class UmbDetailRepositoryBase<DetailModelType extends { unique:
|
||||
|
||||
const { data: createdData, error } = await this.#detailSource.create(data);
|
||||
|
||||
if (!error) {
|
||||
if (createdData) {
|
||||
this.#detailStore?.append(createdData);
|
||||
|
||||
// TODO: how do we handle generic notifications? Is this the correct place to do it?
|
||||
|
||||
Reference in New Issue
Block a user