SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Typo on the code sample? Sample doesn't work... #8281

Open pemate opened 2 years ago

pemate commented 2 years ago

[Enter feedback here]

Hi all,

The sample code doesn't work, it seems at least there is a typo on the source code, but even removing it, the sample doesn't work: "$data": "${items}",

Error that shows is: sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69

   TypeError: Cannot read properties of undefined (reading 'data')
at t.render (sp-adaptive-card-extension-web-part_en-us_c607b41469e1fde0768a.js:2:1348699)
at Bo (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:75856)
at No (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:75651)
at ys (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:111120)
at pc (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:102601)
at uc (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:102526)
at ac (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:99556)
at sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:51350
at t.unstable_runWithPriority (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:5166)
at Gi (sp-webpart-workbench-assembly_en-us_ef0090948d9bf05b45d86ea34a7650d0.js:69:51060)

Identified the issue, as per: https://adaptivecards.io/designer, Bolder and None are not accepted, only bolder and none, changing that, the code works.

in the JSON src/adaptiveCardExtensions/helloWorld/quickView/template/QuickViewTemplate.json

     "weight": "Bolder",

... "spacing": "None"


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.