mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 10:38:20 +00:00
fix edit creation rpc method name construction
This commit is contained in:
parent
ec48658bd0
commit
d71a909684
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ const { subsystem, entity } = $(props);
|
|||
|
||||
async function create(value: any) {
|
||||
console.debug('value', value);
|
||||
let res = await apiCall(`${editTypes[subsystem].name }.${ editTypes[subsystem][entity].name}.create`, value);
|
||||
let res = await apiCall(`${subsystem}.${entity}.create`, value);
|
||||
if (res.Error === null) {
|
||||
p.toast.success(`Created ${ editTypes[subsystem][entity].name}`);
|
||||
p.router.go(-1);
|
||||
|
|
Loading…
Add table
Reference in a new issue