mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 05:30:39 +02:00
using new runMethod function
This commit is contained in:
parent
15cf0bd414
commit
2ce4c9ce9b
@ -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 (
|
||||
|
@ -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();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user