mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
Logs explorer ensure desc is not null
This commit is contained in:
1 parent
846faa6cdd
commit
8076582dd6
1 file changed
+3
-1
@@ -175,7 +175,7 @@ export const LogsExplorerPage: NextPageWithLayout = () => {
|
||||
|
||||
const payload: UserContent = {
|
||||
name: values.name,
|
||||
description: values.description,
|
||||
description: values?.description ?? '',
|
||||
type: 'log_sql',
|
||||
content: {
|
||||
content_id: editorId,
|
||||
@@ -186,6 +186,8 @@ export const LogsExplorerPage: NextPageWithLayout = () => {
|
||||
visibility: 'user',
|
||||
}
|
||||
|
||||
console.log('Payload', payload)
|
||||
|
||||
try {
|
||||
const { data: query, error } = await content.create(payload)
|
||||
if (error) throw error
|
||||
|
||||
Reference in new issue
Block a user