10-22-2018 06:24 AM
The adf-content-metadata-card component gives an error in ADF 2.5 and 2.6, I get the error after generating a new ADF app with Yeoman, opening a document preview, opening the 'info' sidebar and selecting 'Properties'.
The error message that I get:
It seems to be an error on the mat-expansion-panel-header tag in the contentMetadata component html. Does this have to do with the version of Angular Material used (6.4.3)?
10-22-2018 06:41 AM
Hi which is your configuration in the app.config.json for the metadata?
10-22-2018 07:28 AM
Hi Eugenio,
My app.config.json doesn't have a specific metadata configuration.
Except for the ecmHost & application name I didn't change any of it.
app.config.json |
---|
{ |
10-22-2018 08:59 AM
you could maybe experience this bug [ADF-3609 ] fallback for metadata and undefined value check by magemello · Pull Request #3838 · Alfr... we didn't' merge yet the PR but the workaround, for now, could just add a default configuration for the metadata component like:
"content-metadata": {
"presets": {
"default": "*"
}
}
10-22-2018 09:36 AM
Hi Eugenio,
Adding those lines to my app.conf.json doesn't change anything for me.
10-22-2018 11:15 AM
I am not able to replicate the problem with the 2.6.2 generator can you try this version ?
10-23-2018 02:49 AM
The problem seems to be fixed in the 2.6.2 generator.
I will compare the generated code to my current source code to see if I can fix it.
10-24-2018 04:27 AM
I finally solved it by changing the versions of material, cdk and material-moment-adapter from 6.4.3 to 6.4.7.
I still have no idea why the error occured. The generated code works fine with 6.4.3 versions of the modules.
Explore our Alfresco products with the links below. Use labels to filter content by product module.