Skip to content

Commit

Permalink
Fix let to const
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumppi066 committed Feb 1, 2025
1 parent 6be5413 commit d91ade3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/plugins/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default function Home() {
enabled_plugins.push(plugin)
disabled_plugins.splice(disabled_plugins.indexOf(plugin), 1)
// create the data again but update all plugin's enabled state based on enabled_plugins and disabled_plugins
let new_data = {}
const new_data = {}
for (const key in data) {
if (isNaN(parseInt(key))){
// @ts-ignore
Expand All @@ -201,7 +201,7 @@ export default function Home() {
enabled_plugins.splice(enabled_plugins.indexOf(plugin), 1)
mutate("plugins", { ...data, [plugin]: { ...data[plugin], enabled: false } }, false)
// create the data again but update all plugin's enabled state based on enabled_plugins and disabled_plugins
let new_data = {}
const new_data = {}
for (const key in data) {
if (isNaN(parseInt(key))){
// @ts-ignore
Expand Down

0 comments on commit d91ade3

Please sign in to comment.