updates frontend components to not have DataService in the fullAccessPath

This commit is contained in:
Mose Müller
2023-12-21 10:03:17 +01:00
parent 32a1d14a40
commit 8e3a1694ce
11 changed files with 30 additions and 18 deletions

View File

@ -21,7 +21,8 @@ export const MethodComponent = React.memo((props: MethodProps) => {
const [hideOutput, setHideOutput] = useState(false);
// Add a new state variable to hold the list of function calls
const [functionCalls, setFunctionCalls] = useState([]);
const id = getIdFromFullAccessPath(parentPath.concat('.' + name));
const fullAccessPath = [parentPath, name].filter((element) => element).join('.');
const id = getIdFromFullAccessPath(fullAccessPath);
useEffect(() => {
renderCount.current++;