u
This commit is contained in:
@@ -98,7 +98,7 @@ class ArtikelMarkenPage extends PureComponent {
|
||||
|
||||
this.setState({ busyKey: 'new' });
|
||||
try {
|
||||
const row = await brandAutomat.actions.upsert({ name });
|
||||
const row = await brandAutomat.actions.create({ name });
|
||||
if (this._cancelled) return;
|
||||
this.setState({ newName: '', busyKey: null });
|
||||
enqueueSnackbar(`Marke „${row.name || name}" angelegt.`, { variant: 'success' });
|
||||
@@ -115,7 +115,7 @@ class ArtikelMarkenPage extends PureComponent {
|
||||
|
||||
this.setState({ busyKey: brand.id });
|
||||
try {
|
||||
await brandAutomat.actions.upsert({ name: nextName });
|
||||
await brandAutomat.actions.rename(brand.id, { name: nextName });
|
||||
if (this._cancelled) return;
|
||||
this.setState({ busyKey: null });
|
||||
enqueueSnackbar('Marke gespeichert.', { variant: 'success' });
|
||||
|
||||
Reference in New Issue
Block a user