Skip to content

Commit 09a2b3a

Browse files
authored
Pre release fixes (#166)
* fix: hijacker AS label + entrypoint minor fix * fix: rerendering bug after gql mutation
1 parent 6384fd7 commit 09a2b3a

3 files changed

Lines changed: 18 additions & 17 deletions

File tree

apps/artemis-web/components/ongoing-hijack-table/ongoing-hijack-table.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ const getColumns = (stateValues) => [
118118
'as_title',
119119
'The AS that is potentially responsible for the hijack.</br>Note that this is an experimental field.'
120120
),
121-
text: 'Hijacked AS',
122-
filter: getExactMatchFilter(stateValues['hijack_as'], 'Hijacked AS'),
121+
text: 'Hijacker AS',
122+
filter: getExactMatchFilter(stateValues['hijack_as'], 'Hijacker AS'),
123123
},
124124
{
125125
dataField: 'rpki_status',
@@ -356,8 +356,8 @@ const OngoingHijackTableComponent = (props: any): ReactElement => {
356356
key={i}
357357
value={option.text}
358358
className={`btn ${currSizePerPage === `${option.page}`
359-
? 'btn-secondary'
360-
: 'btn-warning'
359+
? 'btn-secondary'
360+
: 'btn-warning'
361361
}`}
362362
>
363363
{option.text}

apps/artemis-web/scripts/entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
./wait-for -h ${MONGODB_HOST} -p ${MONGODB_PORT} -t 0
33
node query.js
44

5-
if [ -z "${SERVICE_ACCOUNT_PATH}" ]; then (yarn start:notification&); fi
5+
if [ -z "$SERVICE_ACCOUNT_PATH" ]; then (yarn start:notification&); fi
66
NODE_ENV=production NEXT_PUBLIC_REVISION=$(git rev-parse HEAD) yarn run nx serve artemis-web --prod

apps/artemis-web/utils/hooks/use-graphql.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ export function useGraphQl(module: queryType, options: optionsType) {
1313
if (key && key.length) {
1414
vars = isSubscription
1515
? {
16-
onSubscriptionData: (data) => callback(data),
17-
variables: { key },
18-
}
16+
onSubscriptionData: (data) => callback(data),
17+
variables: { key },
18+
}
1919
: {
20-
onCompleted: (data) => callback(data),
21-
variables: { key },
22-
};
20+
onCompleted: (data) => callback(data),
21+
variables: { key },
22+
};
2323
}
2424
if (limits) {
2525
const { limit, offset } = limits;
2626
vars = isSubscription
2727
? {
28-
onSubscriptionData: (data) => callback(data),
29-
variables: { offset, limit, ...varTmp },
30-
}
28+
onSubscriptionData: (data) => callback(data),
29+
variables: { offset, limit, ...varTmp },
30+
}
3131
: {
32-
onCompleted: (data) => callback(data),
33-
variables: { offset, limit, ...varTmp },
34-
};
32+
onCompleted: (data) => callback(data),
33+
variables: { offset, limit, ...varTmp },
34+
};
3535
}
3636

3737
/* eslint-disable react-hooks/rules-of-hooks */
@@ -46,6 +46,7 @@ export function useGraphQl(module: queryType, options: optionsType) {
4646

4747
const res = useMutation(generator.getQuery(), {
4848
...vars,
49+
ignoreResults: true,
4950
skip: isTesting,
5051
});
5152

0 commit comments

Comments
 (0)