Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
6749da8f
Commit
6749da8f
authored
Apr 21, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Use strict null comparison for finding global cache setting
parent
5fc9f55d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cache_settings.html
templates/dashboard/cache_settings.html
+5
-2
No files found.
templates/dashboard/cache_settings.html
View file @
6749da8f
...
...
@@ -70,8 +70,11 @@ async function loadCacheSettings() {
const
data
=
await
response
.
json
();
cacheSettings
=
data
.
settings
||
[];
// Update global toggle
const
globalSetting
=
cacheSettings
.
find
(
s
=>
!
s
.
provider_id
&&
!
s
.
model_name
);
console
.
log
(
'Loaded cache settings:'
,
cacheSettings
);
// Update global toggle - find setting where both provider_id and model_name are null
const
globalSetting
=
cacheSettings
.
find
(
s
=>
s
.
provider_id
===
null
&&
s
.
model_name
===
null
);
console
.
log
(
'Global setting found:'
,
globalSetting
);
document
.
getElementById
(
'globalCacheToggle'
).
checked
=
globalSetting
?
globalSetting
.
cache_enabled
:
true
;
}
catch
(
error
)
{
console
.
error
(
'Error loading cache settings:'
,
error
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment