From 179eca8f6fc2d3571d3dbe2ac339707a446da33f Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:11:53 +0200 Subject: [PATCH] Disable item expansion on placeholders --- client/src/components/History/Content/ContentItem.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/components/History/Content/ContentItem.vue b/client/src/components/History/Content/ContentItem.vue index f92e4a6f4d9b..c407cb80677a 100644 --- a/client/src/components/History/Content/ContentItem.vue +++ b/client/src/components/History/Content/ContentItem.vue @@ -207,6 +207,9 @@ export default { visualize: `/visualizations?dataset_id=${id}`, }; }, + isPlaceholder() { + return this.item.id === "placeholder"; + }, }, methods: { onKeyDown(event) { @@ -219,6 +222,9 @@ export default { } }, onClick() { + if (this.isPlaceholder) { + return; + } if (this.isDataset) { this.$emit("update:expand-dataset", !this.expandDataset); } else {