using new runMethod function

This commit is contained in:
Mose Müller 2024-03-27 10:08:43 +01:00
parent 15cf0bd414
commit 2ce4c9ce9b
2 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@ export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => {
method_name = `start_${name}`;
}
runMethod(method_name, parentPath, {});
const accessPath = [parentPath, method_name].filter((element) => element).join('.');
runMethod(accessPath);
};
return (

View File

@ -32,7 +32,7 @@ export const MethodComponent = React.memo((props: MethodProps) => {
const execute = async (event: React.FormEvent) => {
event.preventDefault();
runMethod(name, parentPath, {});
runMethod(fullAccessPath);
triggerNotification();
};