fix: Cannot save Google Analytics integration. closes #6342
This commit is contained in:
@@ -132,7 +132,7 @@ export default abstract class Store<T extends Model> {
|
||||
|
||||
save(params: Properties<T>, options: JSONObject = {}): Promise<T> {
|
||||
const { isNew, ...rest } = options;
|
||||
if (isNew || !("id" in params)) {
|
||||
if (isNew || !("id" in params) || !params.id) {
|
||||
return this.create(params, rest);
|
||||
}
|
||||
return this.update(params, rest);
|
||||
|
||||
Reference in New Issue
Block a user