[Refactor] Logic: Move object structure creation to the parent file.

This commit is contained in:
Sakamoto Shiina
2024-08-27 11:06:10 +09:00
parent 2e77206080
commit 1042c5e2b9
3 changed files with 21 additions and 18 deletions

View File

@@ -13,7 +13,7 @@ export const useConfig = () => {
return {
getSoftwareVersion: () => {
asyncStdoutToPython({endpoint: "/config/version"});
asyncStdoutToPython("/config/version");
},
updateSoftwareVersion: (payload) => {
updateSoftwareVersion(payload.data);