fix search for only

This commit is contained in:
Daniel 2023-04-04 19:35:45 -04:00
parent 0a1f0a859c
commit 134bdca46e
10 changed files with 18 additions and 18 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@ and limitations under the License.
*/
/**
* @mui/styled-engine v5.11.9
* @mui/styled-engine v5.11.16
*
* @license MIT
* This source code is licensed under the MIT license found in the
@ -47,7 +47,7 @@ and limitations under the License.
*/
/**
* @remix-run/router v1.3.2
* @remix-run/router v1.5.0
*
* Copyright (c) Remix Software Inc.
*
@ -58,7 +58,7 @@ and limitations under the License.
*/
/**
* React Router DOM v6.8.1
* React Router DOM v6.10.0
*
* Copyright (c) Remix Software Inc.
*
@ -69,7 +69,7 @@ and limitations under the License.
*/
/**
* React Router v6.8.1
* React Router v6.10.0
*
* Copyright (c) Remix Software Inc.
*

View File

@ -1,12 +1,12 @@
import React, { useEffect, lazy, Suspense } from 'react';
import { Route, Routes, Navigate, useLocation } from 'react-router-dom';
import RouteElement from './RouteElement';
import useCheckMobileScreen from './_hooks/useCheckMobileScreen';
import { PageNotFound, UnderConstruction, Loading } from './Snippets';
import Base from './BaseStylesWrapper';
import Create from './create';
import Home from './home';
import Base from './BaseStylesWrapper';
import RouteElement from './RouteElement';
import { PageNotFound, UnderConstruction, Loading } from './Snippets';
const EnterTheCode = lazy(() => import('./entercode'));

View File

@ -218,9 +218,9 @@ export default function search_api(input) {
.where((obj) => (earth ? obj.gsx$earth != "" : obj.gsx$earth == ""))
.where((obj) => (water ? obj.gsx$water != "" : obj.gsx$water == ""));
const el = ["fire", "air", "earth", "water"].reduce((prev, e) =>
(input.elements[e]) ? `${prev}, ${e}` : prev
, "");
const el = ["fire", "air", "earth", "water"].filter((e) =>
input.elements[e]
).join(', ');
if (el !== "") {
creatureResults = creatureResults.find({ 'gsx$elements':