We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f4756b commit f89f7b8Copy full SHA for f89f7b8
2 files changed
api/src/index.js
@@ -190,7 +190,7 @@ const start = async () => {
190
const page = Number(pageString) || 1;
191
192
const { classifiers, ...info } =
193
- shootersTableByMemberNumber[division][memberNumber][0];
+ shootersTableByMemberNumber[division]?.[memberNumber]?.[0] || {};
194
const data = multisort(
195
classifiers,
196
sort?.split?.(","),
web/src/utils/client.js
@@ -7,7 +7,7 @@ export const useApi = (endpoint) => {
7
const [json, setJson] = useState(null);
8
useEffect(() => {
9
setJson(null);
10
- if (endpoint) {
+ if (endpoint && !endpoint.includes("undefined")) {
11
window
12
.fetch(API_URL + endpoint)
13
.then((r) => r.json())
0 commit comments