File tree Expand file tree Collapse file tree 3 files changed +4
-16
lines changed
routes/_layout/create/feed/_tabs Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ feedsRoutes.get(
132132 } ) ,
133133 ) ;
134134 } catch ( error ) {
135- c . var . sp . getLogger ( ) . error ( { error } , `Error fetching feed` ) ;
136135 if ( error instanceof NotFoundError ) {
137136 return c . json (
138137 ApiErrorResponseSchema . parse ( {
@@ -143,6 +142,7 @@ feedsRoutes.get(
143142 404 ,
144143 ) ;
145144 }
145+ c . var . sp . getLogger ( ) . error ( { error } , `Error fetching feed` ) ;
146146 return c . json (
147147 ApiErrorResponseSchema . parse ( {
148148 statusCode : 500 ,
Original file line number Diff line number Diff line change @@ -82,20 +82,8 @@ function BasicInformationComponent() {
8282 type : "manual" ,
8383 message : "This hashtag is already taken." ,
8484 } ) ;
85- } catch ( error ) {
86- if (
87- error &&
88- typeof error === "object" &&
89- "response" in error &&
90- ( error . response as { status : number } ) ?. status === 404
91- ) {
92- form . clearErrors ( "id" ) ;
93- } else {
94- form . setError ( "id" , {
95- type : "manual" ,
96- message : "Network error. Please check your connection." ,
97- } ) ;
98- }
85+ } catch {
86+ form . clearErrors ( "id" ) ;
9987 } finally {
10088 setIsValidatingId ( false ) ;
10189 }
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const feedCreationStateCreator: StateCreator<
135135 }
136136 rssDistributor . config . feedConfig . title = values . name ?? "" ;
137137 rssDistributor . config . feedConfig . description = values . description ?? "" ;
138- rssDistributor . config . serviceUrl = `https://rss.curate.fun/${ values . id } /rss.xml ` ;
138+ rssDistributor . config . serviceUrl = `https://rss.curate.fun/${ values . id } ` ;
139139 const objectTransform = rssDistributor . transform ?. find (
140140 ( t ) => t . plugin === "@curatedotfun/object-transform" ,
141141 ) ;
You can’t perform that action at this time.
0 commit comments