fix: bug fix New UI / Feature tab - Default values hard-coded
Browse filesIt was not possible to change "Context Optimization" and "Prompt Library".
app/components/@settings/tabs/features/FeaturesTab.tsx
CHANGED
@@ -121,13 +121,23 @@ export default function FeaturesTab() {
|
|
121 |
|
122 |
// Enable features by default on first load
|
123 |
React.useEffect(() => {
|
124 |
-
//
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
-
// Only enable event logs if not explicitly set before
|
131 |
if (eventLogs === undefined) {
|
132 |
setEventLogs(true);
|
133 |
}
|
|
|
121 |
|
122 |
// Enable features by default on first load
|
123 |
React.useEffect(() => {
|
124 |
+
// Only set defaults if values are undefined
|
125 |
+
if (isLatestBranch === undefined) {
|
126 |
+
enableLatestBranch(true);
|
127 |
+
}
|
128 |
+
|
129 |
+
if (contextOptimizationEnabled === undefined) {
|
130 |
+
enableContextOptimization(true);
|
131 |
+
}
|
132 |
+
|
133 |
+
if (autoSelectTemplate === undefined) {
|
134 |
+
setAutoSelectTemplate(true);
|
135 |
+
}
|
136 |
+
|
137 |
+
if (promptId === undefined) {
|
138 |
+
setPromptId('optimized');
|
139 |
+
}
|
140 |
|
|
|
141 |
if (eventLogs === undefined) {
|
142 |
setEventLogs(true);
|
143 |
}
|
pnpm-lock.yaml
CHANGED
The diff for this file is too large to render.
See raw diff
|
|