Skip to content

Commit bb8e8c3

Browse files
committed
Merge branch 'fix/tests_e2e_points_size' of https://github.com/Geode-solutions/OpenGeodeWeb-Front into fix/tests_e2e_points_size
2 parents a65c1eb + 839775f commit bb8e8c3

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

app/components/HybridViewerTooltip.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ const originalIndex = computed(() => {
6363
}
6464
return Math.floor(Number(originalId));
6565
});
66-
const RESERVED_ATTRIBUTE_KEYS = new Set(["coordinates", "vtkOriginalCellIds", "vtkOriginalPointIds"]);
66+
const RESERVED_ATTRIBUTE_KEYS = new Set([
67+
"coordinates",
68+
"vtkOriginalCellIds",
69+
"vtkOriginalPointIds",
70+
]);
6771
6872
const hasOtherAttributes = computed(() => {
6973
const attributes = hybridViewerStore.hoverData?.attributes || {};
@@ -74,10 +78,12 @@ const hasOtherAttributes = computed(() => {
7478
7579
const sortedAttributes = computed(() => {
7680
const attributes = hybridViewerStore.hoverData?.attributes || {};
77-
return Object.entries(attributes)
78-
.filter(([key]) => !RESERVED_ATTRIBUTE_KEYS.has(key))
79-
// oxlint-disable-next-line unicorn/no-array-sort
80-
.sort(([keyA], [keyB]) => keyA.localeCompare(keyB));
81+
return (
82+
Object.entries(attributes)
83+
.filter(([key]) => !RESERVED_ATTRIBUTE_KEYS.has(key))
84+
// oxlint-disable-next-line unicorn/no-array-sort
85+
.sort(([keyA], [keyB]) => keyA.localeCompare(keyB))
86+
);
8187
});
8288
8389
function capitalize(val) {

0 commit comments

Comments
 (0)