diff --git a/packages/frontend/src/editor/editor.tsx b/packages/frontend/src/editor/editor.tsx index adc99591f..bbf8d7858 100644 --- a/packages/frontend/src/editor/editor.tsx +++ b/packages/frontend/src/editor/editor.tsx @@ -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 { diff --git a/packages/frontend/src/graphql/get-pagination-tool.ts b/packages/frontend/src/graphql/get-pagination-tool.ts index 61e4b69c3..55a786b28 100644 --- a/packages/frontend/src/graphql/get-pagination-tool.ts +++ b/packages/frontend/src/graphql/get-pagination-tool.ts @@ -36,7 +36,7 @@ export function getPaginationTool>({ : 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 }), }; diff --git a/packages/frontend/src/views/admin/views/core/plugins/actions/create/hooks/use-create-edit-plugin-admin.ts b/packages/frontend/src/views/admin/views/core/plugins/actions/create/hooks/use-create-edit-plugin-admin.ts index 9b2bd1b25..46cd41885 100644 --- a/packages/frontend/src/views/admin/views/core/plugins/actions/create/hooks/use-create-edit-plugin-admin.ts +++ b/packages/frontend/src/views/admin/views/core/plugins/actions/create/hooks/use-create-edit-plugin-admin.ts @@ -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 ?? '', }, });