Skip to content

Commit bffd124

Browse files
committed
Fixed storage provider
1 parent 289b504 commit bffd124

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@churchapps/apihelper": patch
3+
---
4+
5+
Publish the `StorageProviderFactory` export (already in source but missing from the published 0.8.0). Consumers such as Api's `StorageResolver` import it, and the stale published build threw at module load, unregistering the whole content module and 404ing every `/content/*` route.

apphelper/src/donations/components/FundDonations.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const FundDonations: React.FC<Props> = (props) => {
1616

1717
const addRow = (e: React.MouseEvent) => {
1818
e.preventDefault();
19+
if (!props.funds?.[0]) return;
1920
const fundDonations = [...props.fundDonations];
2021
const fd = { fundId: props.funds[0].id } as FundDonationInterface;
2122
fundDonations.push(fd);

apphelper/src/login/components/Register.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const Register: React.FC<Props> = (props) => {
121121
props.onVerified(resp.authGuid, user.email || "");
122122
} else handleRegisterSuccess(resp);
123123
})
124-
.catch((e: any) => { props.updateErrors([e.toString()]); throw e; })
124+
.catch((e: any) => { props.updateErrors([e.toString()]); })
125125
.finally(() => {
126126
setIsSubmitting(false);
127127
});

0 commit comments

Comments
 (0)