Skip to content

Commit

Permalink
chore: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Jul 17, 2024
1 parent a071715 commit 787196c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const Editor = ({
},
content: (() => {
const current = Array.isArray(value)
? value.find(v => v.language_code === selectedLanguage)?.value ?? ''
? (value.find(v => v.language_code === selectedLanguage)?.value ?? '')
: value;

try {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/graphql/get-pagination-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function getPaginationTool<T extends Record<string, unknown>>({
: Number(searchParams.first ?? 0),
last: Number(searchParams.last ?? 0),
cursor: Number(searchParams.cursor) ?? null,
search: search ? searchParams.search ?? '' : '',
search: search ? (searchParams.search ?? '') : '',
sortBy: getGetSortByParamsAPI({ constEnum: sortByEnum, searchParams }),
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const useCreateEditPluginAdmin = ({ data }: Args) => {
code: data?.code ?? '',
description: data?.description ?? '',
support_url: data?.support_url ?? '',
author: data ? data.author : session?.name ?? '',
author: data ? data.author : (session?.name ?? ''),
author_url: data?.author_url ?? '',
},
});
Expand Down

0 comments on commit 787196c

Please sign in to comment.