diff --git a/web/src/composables/useLogs.ts b/web/src/composables/useLogs.ts
index 299b539084..b0376506a4 100644
--- a/web/src/composables/useLogs.ts
+++ b/web/src/composables/useLogs.ts
@@ -723,7 +723,14 @@ const useLogs = () => {
true,
true,
);
+
searchObj.data.stream.selectedStreamFields = streamData.schema;
+
+ if(!searchObj.data.stream.selectedStreamFields || searchObj.data.stream.selectedStreamFields.length == 0) {
+ searchObj.data.stream.selectedStreamFields = [];
+ searchObj.loading = false;
+ return false;
+ }
}
const streamFieldNames: any =
@@ -1063,8 +1070,6 @@ const useLogs = () => {
return req;
} catch (e: any) {
- // showErrorNotification("Invalid SQL Syntax");
- console.log(e);
notificationMsg.value =
"An error occurred while constructing the search query.";
return "";
diff --git a/web/src/plugins/logs/Index.vue b/web/src/plugins/logs/Index.vue
index 1469116663..246216bb17 100644
--- a/web/src/plugins/logs/Index.vue
+++ b/web/src/plugins/logs/Index.vue
@@ -187,6 +187,21 @@ along with this program. If not, see