[Refactor] Logic: Move object structure creation to the parent file.
This commit is contained in:
@@ -13,7 +13,7 @@ export const useConfig = () => {
|
||||
|
||||
return {
|
||||
getSoftwareVersion: () => {
|
||||
asyncStdoutToPython({endpoint: "/config/version"});
|
||||
asyncStdoutToPython("/config/version");
|
||||
},
|
||||
updateSoftwareVersion: (payload) => {
|
||||
updateSoftwareVersion(payload.data);
|
||||
|
||||
Reference in New Issue
Block a user