Open leichtin opened 1 week ago
We have the same issue with 4.13.1 - cannot be used, @wobba
In my opinion the missing slot warning works as intended: there's a reference to a slot named "Id" in the (default) AC-layout-template "List" and there's no (default) slot named "Id").
@wobba The question is rather, whether this 'id' attribute for the items-collection is really necessary in this standard layout template. I've tested this with a AC-layout-template without this line and it worked for me (with version 4.12.2).
BUT: There seems to be a general problem with adaptive-card-rendering in version 4.13.1, which leads to the misbehaviour described by @leichtin and @marcoschmucker.
Simply switching the template-type to "Adaptive Cards" in a freshly added results-webpart leads to not changing and rendering the default results-layout "List" and the following error in the browser console is logged:
I saw, in TemplateService.ts, that packages for adaptive card-handling (adaptivecards, adaptive-expressions, adaptivecards-templating) are imported on demand.
Could that be a packaging-issue finally?
Version used Ex: 4.13.1
Describe the bug Warning "The following slots have not been configured: Id" when changing to Adaptive Cards layout. Webpart then does not display anything.
To Reproduce
Expected behavior When using adaptive cards layout, mandatory standard fields should alredy be mapped.
Screenshots
Desktop (please complete the following information):
Additional context Changing line 50 in results template from $root.slots['IId']))[0]} to $root.slots['ItemId']))[0]} removes the warning but doing the same in a custom json still displays the warning "The following slots have not been configured:" but without the missing field.