Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robot9706 committed Nov 28, 2024
1 parent a6fe6d5 commit 4badf49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions web/crux-ui/src/pages/[teamSlug]/deployments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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))
Expand Down
10 changes: 5 additions & 5 deletions web/crux/src/app/deploy/deploy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -851,28 +851,28 @@ 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',
},
},
},
{
version: {
name: {
contains: filter,
contains: filterKeyword,
mode: 'insensitive',
},
},
Expand All @@ -881,7 +881,7 @@ export default class DeployService {
version: {
project: {
name: {
contains: filter,
contains: filterKeyword,
mode: 'insensitive',
},
},
Expand Down

0 comments on commit 4badf49

Please sign in to comment.