Skip to content

Commit

Permalink
live-preview: Fix get_property_value_table
Browse files Browse the repository at this point in the history
... to actually use the code that is also used by
the tests :-)
  • Loading branch information
hunger committed Mar 6, 2025
1 parent a90bb8d commit 7da7e10
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tools/lsp/preview/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1259,15 +1259,7 @@ fn get_property_value_table(
property_name.to_string(),
)
})
.map(|pd| {
let mut mapping = ValueMapping::default();
map_value_and_type(&pd.ty, &pd.value, &mut mapping);
(
mapping.is_array,
std::mem::take(&mut mapping.headers),
std::mem::take(&mut mapping.array_values),
)
})
.map(|pd| map_preview_data_to_property_value_table(&pd))
.unwrap_or_else(|| (false, Default::default(), Default::default()));

let headers =
Expand Down

0 comments on commit 7da7e10

Please sign in to comment.