Skip to content

Commit 9bed0e4

Browse files
committed
add yarn build to checks
1 parent 1227aae commit 9bed0e4

4 files changed

Lines changed: 5 additions & 31 deletions

File tree

.github/workflows/build-app.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
check:
22
@output=$$(yarn run --silent prettier --check src 2>&1) || { echo "$$output"; exit 1; }
33
@output=$$(yarn run --silent eslint src 2>&1) || { echo "$$output"; exit 1; }
4+
@yarn build
45

56
fix:
67
@output=$$(yarn run --silent prettier --write src 2>&1) || { echo "$$output"; exit 1; }
@@ -12,9 +13,6 @@ GIT_VERSION = `git rev-parse --short HEAD`
1213
run:
1314
yarn dev
1415

15-
build:
16-
yarn build
17-
1816
gen:
1917
yarn run openapi-ts -i http://leda.sao.ru/api/openapi.json -o ./src/clients/backend
2018
yarn run openapi-ts -i http://leda.sao.ru/admin/api/openapi.json -o ./src/clients/admin

src/pages/ObjectDetails.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ async function fetcher(
6363
});
6464

6565
if (response.error || !response.data) {
66+
const err = response.error;
6667
throw new Error(
67-
`Error during query: ${typeof response.error === "object" ? JSON.stringify(response.error) : response.error}`,
68+
`Error during query: ${typeof err === "object" ? JSON.stringify(err) : err}`,
6869
);
6970
}
7071

src/pages/SearchResults.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ async function fetcher(
139139
}
140140

141141
if (response.error || !response.data) {
142+
const err = response.error;
142143
throw new Error(
143-
`Error during query: ${typeof response.error === "object" ? JSON.stringify(response.error) : response.error}`,
144+
`Error during query: ${typeof err === "object" ? JSON.stringify(err) : err}`,
144145
);
145146
}
146147

0 commit comments

Comments
 (0)