File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed
Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff 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 ) => {
Original file line number Diff line number Diff 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 ) => {
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments