Skip to content

Commit 6bf890d

Browse files
MaxNumeriquegithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent 1c36b23 commit 6bf890d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

components/ObjectSelector.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@
9191
(candidate_key) =>
9292
!allowed_objects_list.some(
9393
(allowed_object_map) =>
94-
!Object.prototype.hasOwnProperty.call(allowed_object_map, candidate_key),
94+
!Object.prototype.hasOwnProperty.call(
95+
allowed_object_map,
96+
candidate_key,
97+
),
9598
),
9699
)
97100
const final_object = {}
@@ -101,7 +104,10 @@
101104
)
102105
const priority_list = allowed_objects_list
103106
.map((allowed_object_map) => allowed_object_map[key].object_priority)
104-
.filter((priority_value) => priority_value !== undefined && priority_value !== null)
107+
.filter(
108+
(priority_value) =>
109+
priority_value !== undefined && priority_value !== null,
110+
)
105111
final_object[key] = { is_loadable: Math.min(...load_score_list) }
106112
if (priority_list.length) {
107113
final_object[key].object_priority = Math.max(...priority_list)
@@ -130,7 +136,10 @@
130136
const best_priority_objects = best_score_objects.filter(
131137
(k) => final_object[k].object_priority === highest_priority,
132138
)
133-
if (highest_priority !== -Infinity && best_priority_objects.length === 1) {
139+
if (
140+
highest_priority !== -Infinity &&
141+
best_priority_objects.length === 1
142+
) {
134143
set_geode_object(best_priority_objects[0])
135144
already_selected = true
136145
}
@@ -143,7 +152,6 @@
143152
toggle_loading()
144153
}
145154
146-
147155
function set_geode_object(input_geode_object) {
148156
if (input_geode_object != "") {
149157
emit("update_values", { input_geode_object })

0 commit comments

Comments
 (0)