Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 9, 2024
1 parent 8a6eaae commit 82ec617
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontends/api/src/generated/v0/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const createRequestFunction = function (
const axiosRequestArgs = {
...axiosArgs.options,
url:
(axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
(axios.defaults.baseURL ? "" : (configuration?.basePath ?? basePath)) +
axiosArgs.url,
}
return axios.request<T, R>(axiosRequestArgs)
Expand Down
2 changes: 1 addition & 1 deletion frontends/api/src/generated/v1/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const createRequestFunction = function (
const axiosRequestArgs = {
...axiosArgs.options,
url:
(axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
(axios.defaults.baseURL ? "" : (configuration?.basePath ?? basePath)) +
axiosArgs.url,
}
return axios.request<T, R>(axiosRequestArgs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ResourceCategoryTabList: React.FC<ResourceCategoryTabsProps> = ({
} else {
count =
counts && t.resource_category
? counts[t.resource_category] ?? 0
? (counts[t.resource_category] ?? 0)
: undefined
}
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CheckboxChoiceField: React.FC<CheckboxChoiceFieldProps> = ({
className,
}) => {
const isChecked = (choice: CheckboxProps) =>
choice.value ? values?.includes(choice.value) ?? false : false
choice.value ? (values?.includes(choice.value) ?? false) : false
return (
<FormControl
component="fieldset"
Expand Down

0 comments on commit 82ec617

Please sign in to comment.