mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-11 07:47:12 +02:00
using new runMethod function
This commit is contained in:
@ -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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user