Skip to content

Commit f6823b6

Browse files
committed
hotfix : uncomment railguard
1 parent bb40ba0 commit f6823b6

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

pages/katalog/dewan-negara/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ export const getStaticProps: GetStaticProps = withi18n(
4747
);
4848

4949
const fulfilledResults = results.filter(assertFulfilled);
50-
// if (
51-
// fulfilledResults.length !== results.length ||
52-
// fulfilledResults.length === 0
53-
// ) {
54-
// throw new Error("Failed to fetch catalogue data for dewan-negara");
55-
// }
50+
if (
51+
fulfilledResults.length !== results.length ||
52+
fulfilledResults.length === 0
53+
) {
54+
throw new Error("Failed to fetch catalogue data for dewan-negara");
55+
}
5656
const data = fulfilledResults.map(e => e.value.data.catalogue_list);
5757

5858
const archive = data.reduce((res, curr) => {

pages/katalog/dewan-rakyat/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ export const getStaticProps: GetStaticProps = withi18n(
4747
);
4848

4949
const fulfilledResults = results.filter(assertFulfilled);
50-
// if (
51-
// fulfilledResults.length !== results.length ||
52-
// fulfilledResults.length === 0
53-
// ) {
54-
// throw new Error("Failed to fetch catalogue data for dewan-rakyat");
55-
// }
50+
if (
51+
fulfilledResults.length !== results.length ||
52+
fulfilledResults.length === 0
53+
) {
54+
throw new Error("Failed to fetch catalogue data for dewan-rakyat");
55+
}
5656
const data = fulfilledResults.map(e => e.value.data.catalogue_list);
5757

5858
const archive = data.reduce((res, curr) => {

pages/katalog/kamar-khas/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ export const getStaticProps: GetStaticProps = withi18n(
4747
);
4848

4949
const fulfilledResults = results.filter(assertFulfilled);
50-
// if (
51-
// fulfilledResults.length !== results.length ||
52-
// fulfilledResults.length === 0
53-
// ) {
54-
// throw new Error("Failed to fetch catalogue data for kamar-khas");
55-
// }
50+
if (
51+
fulfilledResults.length !== results.length ||
52+
fulfilledResults.length === 0
53+
) {
54+
throw new Error("Failed to fetch catalogue data for kamar-khas");
55+
}
5656
const data = fulfilledResults.map(e => e.value.data.catalogue_list);
5757

5858
const archive = data.reduce((res, curr) => {

0 commit comments

Comments
 (0)