From 4badf495873ce635b36758a409bb363deb803100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Nagygy=C3=B6rgy?= Date: Thu, 28 Nov 2024 11:47:51 +0100 Subject: [PATCH] fix: lint --- web/crux-ui/src/pages/[teamSlug]/deployments.tsx | 3 +-- web/crux/src/app/deploy/deploy.service.ts | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/web/crux-ui/src/pages/[teamSlug]/deployments.tsx b/web/crux-ui/src/pages/[teamSlug]/deployments.tsx index 24a93a550..dd014d940 100644 --- a/web/crux-ui/src/pages/[teamSlug]/deployments.tsx +++ b/web/crux-ui/src/pages/[teamSlug]/deployments.tsx @@ -5,7 +5,6 @@ import useCopyDeploymentState from '@app/components/deployments/use-copy-deploym import { Layout } from '@app/components/layout' import SelectNodeChips from '@app/components/nodes/select-node-chips' import { BreadcrumbLink } from '@app/components/shared/breadcrumb' -import Filters from '@app/components/shared/filters' import PageHeading from '@app/components/shared/page-heading' import { PaginationSettings } from '@app/components/shared/paginator' import DyoButton from '@app/elements/dyo-button' @@ -81,7 +80,7 @@ const DeploymentsPage = () => { take: pagination.pageSize, filter: !filter.filter || filter.filter.trim() === '' ? null : filter.filter, nodeId: filterNode?.id ?? null, - status: status, + status, } const res = await fetch(routes.deployment.api.list(query)) diff --git a/web/crux/src/app/deploy/deploy.service.ts b/web/crux/src/app/deploy/deploy.service.ts index a86b4e0c7..2f4b5abb7 100644 --- a/web/crux/src/app/deploy/deploy.service.ts +++ b/web/crux/src/app/deploy/deploy.service.ts @@ -851,20 +851,20 @@ export default class DeployService { } if (query.filter) { - const filter = query.filter + const { filter: filterKeyword } = query where = { ...where, OR: [ { prefix: { - contains: filter, + contains: filterKeyword, mode: 'insensitive', }, }, { node: { name: { - contains: filter, + contains: filterKeyword, mode: 'insensitive', }, }, @@ -872,7 +872,7 @@ export default class DeployService { { version: { name: { - contains: filter, + contains: filterKeyword, mode: 'insensitive', }, }, @@ -881,7 +881,7 @@ export default class DeployService { version: { project: { name: { - contains: filter, + contains: filterKeyword, mode: 'insensitive', }, },