check for createdData

This commit is contained in:
Mads Rasmussen
2023-11-24 15:02:18 +01:00
parent 9ce0082fb1
commit f31a18e1e4

View File

@@ -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?