File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
packages/pxweb2/src/app/pages/TableViewer Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ export function TableViewer() {
3030 const config = getConfig ( ) ;
3131 const accessibility = useAccessibility ( ) ;
3232
33+ const baseUrl = config . apiUrl ;
34+ OpenAPI . BASE = baseUrl ;
35+
3336 const { tableId } = useParams < { tableId : string } > ( ) ;
3437 const [ selectedTableId ] = useState ( tableId ?? '' ) ;
3538 const [ selectedNavigationView , setSelectedNavigationView ] =
@@ -50,13 +53,6 @@ export function TableViewer() {
5053 const hideMenuRef = useRef < HTMLButtonElement > ( null ) ;
5154 const skipToMainRef = useRef < HTMLDivElement > ( null ) ;
5255
53- // Set base URL for API client
54- const baseUrl = config . apiUrl ;
55-
56- useEffect ( ( ) => {
57- OpenAPI . BASE = baseUrl ;
58- } , [ baseUrl ] ) ;
59-
6056 useEffect ( ( ) => {
6157 if ( hasFocus !== 'none' && navigationBarRef . current ) {
6258 hideMenuRef . current ?. focus ( ) ;
You can’t perform that action at this time.
0 commit comments