Skip to content

Commit 5aa73a7

Browse files
committed
more correct initialization order for new attribute search outcomes.
An attribute selection affects the initialization, hence it should be added first.
1 parent ab69604 commit 5aa73a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-attributes/src/search/outcome.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ impl Outcome {
5454
collection: &MetadataCollection,
5555
attribute_names: &mut dyn Iterator<Item = KStringRef<'_>>,
5656
) {
57-
self.initialize(collection);
58-
5957
self.selected.clear();
6058
self.selected.extend(attribute_names.map(|name| {
6159
(
6260
name.to_owned(),
6361
collection.name_to_meta.get(name.as_str()).map(|meta| meta.id),
6462
)
6563
}));
64+
65+
self.initialize(collection);
6666
self.reset_remaining();
6767
}
6868

0 commit comments

Comments
 (0)