From c85b8d482a11e3800ea86e42d41bc99c99738ea1 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 29 Jul 2021 07:16:59 +0200 Subject: errors be gone! --- components/tweaks.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'components') diff --git a/components/tweaks.tsx b/components/tweaks.tsx index bd607b7..a30ce4c 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -39,7 +39,7 @@ import { } from '@chakra-ui/react' import React, { useState, useContext } from 'react' import Scrollbars from 'react-custom-scrollbars-2' -import { initialPhysics, initialFilter, initialVisuals, Visuals } from './config' +import { initialPhysics, initialFilter, initialVisuals } from './config' import { ThemeContext } from '../pages/themecontext' @@ -312,6 +312,7 @@ export const Tweaks = (props: TweakProps) => { Nodes } variant="ghost" @@ -322,7 +323,7 @@ export const Tweaks = (props: TweakProps) => { //shuffle that guy //definitely thought of this myself nodeColorScheme: arr - .map((x) => [Math.random(), x]) + .map((x: any) => [Math.random(), x]) .sort(([a], [b]) => a - b) .map(([_, x]) => x), }) @@ -331,6 +332,7 @@ export const Tweaks = (props: TweakProps) => { } size="sm" variant="ghost" -- cgit v1.2.3