microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
388 stars 341 forks source link

Issue with adding selected properties #4007

Closed kjdahldev closed 1 month ago

kjdahldev commented 1 month ago

Version used Ex: 4.0

Describe the bug When manually adding properties (since the list returns too many) to the field Selected properties, the added property gets combined with all already added properties. This leads to the property not working. If I delete all properties and add just the one, it will work but not the second one added. Last time I used this web part it was fine so I am not sure if its environment related or what.

When I inspect CanvasContent1 on the page item, this is the result:

selectedProps

Using a script I can force the properties to be added correctly as unique strings in the array but its a bit cumbersome ;)

fix

To Reproduce Manual add new properties at the end of field Selected properties using format ,Prop1,Prop2

Expected behavior Properties added correctly.

Screenshots See above.

Desktop (please complete the following information):

Additional context