Skip to content

Commit

Permalink
fix: invalid os value, recover from failed request
Browse files Browse the repository at this point in the history
- finished reverting accidentally camelCased values
- request state errors should be cleared on success

resolves comses/planning#127
  • Loading branch information
sgfost committed Jul 10, 2023
1 parent 549f8a5 commit 0fc53ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/releaseEditor/MetadataFormPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const osOptions = [
{ value: "linux", label: "Unix/Linux" },
{ value: "macos", label: "Mac OS" },
{ value: "windows", label: "Windows" },
{ value: "platformIndependent", label: "Operating System Independent" },
{ value: "platform_independent", label: "Operating System Independent" },
{ value: "other", label: "Other" },
];
Expand Down
1 change: 1 addition & 0 deletions frontend/src/composables/api/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function useAxios(baseUrl?: string, config?: AxiosRequestConfig) {
parser(response.data);
}
state.data = response.data;
state.serverErrors = [];
state.isFinished = true;
if (onSuccess) {
onSuccess(response);
Expand Down

0 comments on commit 0fc53ae

Please sign in to comment.