mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-03-21 17:24:14 -05:00
fix search for only
This commit is contained in:
parent
0a1f0a859c
commit
134bdca46e
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
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user