Skip to content

Commit

Permalink
Release 2.0.89
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Jan 16, 2024
1 parent 66b8ceb commit b0c410a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/components/Gamepad/Gamepad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ const Gamepad = ({ setScene, bottom }: any) => {

useEffect(() => {
if (!blocked) {
;[pad0, pad1, pad2, pad3].map(
// eslint-disable-next-line prettier/prettier
([pad0, pad1, pad2, pad3]).map(
(pad: any) =>
pad?.buttons.map((b: any, i: number) => {
if (
Expand Down
13 changes: 6 additions & 7 deletions src/pages/Scenes/Scenes.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/indent */
import { useEffect } from 'react'
import { makeStyles } from '@mui/styles'
import {
Expand Down Expand Up @@ -92,6 +91,11 @@ const Scenes = () => {
getScenes()
}, [getScenes])

const sceneFilter = (sc: string) =>
scenes[sc].scene_tags
?.split(',')
.some((sce: string) => sceneActiveTags.includes(sce))

return (
<>
<div
Expand Down Expand Up @@ -207,12 +211,7 @@ const Scenes = () => {
>
{scenes && Object.keys(scenes).length ? (
(sceneActiveTags.length
? Object.keys(scenes).filter(
(sc) =>
scenes[sc].scene_tags
?.split(',')
.some((sce: string) => sceneActiveTags.includes(sce))
)
? Object.keys(scenes).filter(sceneFilter)
: Object.keys(scenes)
).map((s, i) => {
return (
Expand Down

0 comments on commit b0c410a

Please sign in to comment.