Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: fixes the handling of the run query command through monaco

TzeYiingea3b40688ac6
diff --git a/studio/pages/project/[ref]/logs-explorer/index.tsx b/studio/pages/project/[ref]/logs-explorer/index.tsx
index 026f43bf5ec..b62f1fd4a23 100644
--- a/studio/pages/project/[ref]/logs-explorer/index.tsx
+++ b/studio/pages/project/[ref]/logs-explorer/index.tsx
@@ -74,12 +74,16 @@ export const LogsExplorerPage: NextPage = () => {
})
}
- const handleRun = () => {
- changeQuery(editorValue)
+ const handleRun = (value?: string) => {
+ const query = value || editorValue
+ if (value) {
+ setEditorValue(value)
+ }
+ changeQuery(query)
runQuery()
router.push({
pathname: router.pathname,
- query: { ...router.query, q: editorValue },
+ query: { ...router.query, q: query },
})
}