fix: add back redirect for startup tab

This commit is contained in:
Fredrik Burmester
2026-01-09 16:34:06 +01:00
parent 7514bc2c2c
commit ca7591ad21
3 changed files with 7 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ export default function menuLinks() {
);
const config = response?.data;
if (!config && !Object.hasOwn(config, "menuLinks")) {
if (!config || !Object.hasOwn(config, "menuLinks")) {
console.error("Menu links not found");
return;
}

View File

@@ -42,6 +42,7 @@ export default function TabLayout() {
activeIndicatorColor={"#392c3b"}
scrollEdgeAppearance='default'
>
<NativeTabs.Screen redirect name='index' />
<NativeTabs.Screen
listeners={(_e) => ({
tabPress: (_e) => {

View File

@@ -0,0 +1,5 @@
const Index = () => {
return null;
};
export default Index;