From 18ef16bf6e22db2dac2586b4541409ace8d07b98 Mon Sep 17 00:00:00 2001
From: byeoon <47872200+byeoon@users.noreply.github.com>
Date: Thu, 24 Oct 2024 14:55:57 +0000
Subject: [PATCH] test fix
---
src/ui/settings/pages/Developer.tsx | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/ui/settings/pages/Developer.tsx b/src/ui/settings/pages/Developer.tsx
index 366ac310..4e1c3edd 100644
--- a/src/ui/settings/pages/Developer.tsx
+++ b/src/ui/settings/pages/Developer.tsx
@@ -17,6 +17,7 @@ const debugInfo = getDebugInfo();
export default function Developer() {
const navigation = NavigationNative.useNavigation();
+ let thevar = "";
//@ts-ignore
useProxy(settings);
//@ts-ignore
@@ -121,14 +122,14 @@ export default function Developer() {
label="Load from custom url"
subLabel={"Load Opti from a custom endpoint."}
icon={}
- value={loaderConfig.customLoadUrl.enabled}
+ value={loaderConfig?.customLoadUrl?.enabled}
onValueChange={(v: boolean) => {
loaderConfig.customLoadUrl.enabled = v;
}}
/>
- {loaderConfig.customLoadUrl.enabled && <>
+ {loaderConfig?.customLoadUrl.enabled && <>
loaderConfig.customLoadUrl.url = v}
placeholder="http://localhost:4040/opti.js"
title="Opti URL"
@@ -155,6 +156,12 @@ export default function Developer() {
})}
arrow
/>
+ thevar = v}
+ placeholder="Developer"
+ title="URL to lead to"
+ />
}