File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export let config = {
1616} ;
1717
1818export function setApiUrl ( url : string | null ) {
19- console . log ( 'setApiUrl called with:' , url ) ;
2019 if ( url ) {
2120 API_URL = url . includes ( '/api' ) ? url : `${ url } /api` ;
2221 }
@@ -41,7 +40,6 @@ export function getConfigData() {
4140}
4241
4342export function getApiUrl ( ) {
44- console . log ( 'getApiUrl called' ) ;
4543 if ( ! API_URL ) {
4644 // Check if window.appConfig exists
4745 if ( window . appConfig && window . appConfig . API_URL ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ const AppWrapper = () => {
1414 window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches
1515 ) ;
1616 type ConfigType = typeof defaultConfig ;
17- console . log ( "defaultConfig" , defaultConfig ) ;
1817 const [ config , setConfig ] = useState < ConfigType > ( defaultConfig ) ;
1918 useEffect ( ( ) => {
2019 const initConfig = async ( ) => {
@@ -36,7 +35,7 @@ const AppWrapper = () => {
3635 setConfig ( config ) ;
3736
3837 } catch ( error ) {
39- console . info ( "Error fetching config: " , error ) ;
38+ console . info ( "frontend config did not load from python " , error ) ;
4039 } finally {
4140 setIsConfigLoaded ( true ) ;
4241 }
You can’t perform that action at this time.
0 commit comments