File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/components/feed-sources/templates Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
66## [ Unreleased]
77
8+ - [ #273 ] ( https://github.com/os2display/display-admin-client/pull/273 )
9+ - Fixed calendar api feed source config endpoint.
810- [ #272 ] ( https://github.com/os2display/display-admin-client/pull/272 )
911 - Fixed feed source selector.
1012- [ #264 ] ( https://github.com/os2display/display-admin-client/pull/264 )
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ const CalendarApiFeedType = ({
1919 useEffect ( ( ) => {
2020 if ( feedSourceId && feedSourceId !== "" ) {
2121 ConfigLoader . loadConfig ( ) . then ( ( config ) => {
22- setOptionsEndpoint ( `${ config . api + feedSourceId } /config/locations` ) ;
22+ let endpoint = config . api ;
23+ endpoint = endpoint . replace ( / \/ $ / , "" ) ;
24+ endpoint += feedSourceId ;
25+ endpoint += "/config/locations" ;
26+
27+ setOptionsEndpoint ( endpoint ) ;
2328 } ) ;
2429 }
2530 } , [ feedSourceId ] ) ;
You can’t perform that action at this time.
0 commit comments