Skip to content

Commit 951f5f1

Browse files
authored
fix: trellis group by config save issue (openobserve#7004)
- openobserve#6997
1 parent 215ac53 commit 951f5f1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/config/src/meta/dashboards/v5/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,8 @@ pub struct MapView {
541541
pub struct Trellis {
542542
pub layout: Option<String>,
543543
pub num_of_columns: i64,
544+
#[serde(skip_serializing_if = "Option::is_none")]
545+
pub group_by_y_axis: Option<bool>,
544546
}
545547

546548
#[derive(Debug, Clone, PartialEq, Hash, Serialize, Deserialize, ToSchema)]

web/src/components/dashboards/addPanel/ConfigPanel.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
199199
<div class="space"></div>
200200

201201
<div
202-
v-if="dashboardPanelData.data.config.trellis?.layout"
202+
v-if="
203+
dashboardPanelData.data.config.trellis?.layout &&
204+
!(isBreakdownFieldEmpty || hasTimeShifts)
205+
"
203206
class="row items-center"
204207
>
205208
<q-toggle

0 commit comments

Comments
 (0)