starlinglab / authenticated-attributes

Authenticated Attributes project by the Starling Lab
MIT License
6 stars 1 forks source link

Bug: If more than one "supporting file", AA preview doesn't render #43

Closed basilesimon closed 1 year ago

basilesimon commented 1 year ago

See for example this entity: https://uwazi.dev.starlinglab.org/en/entity/nglfxgeua8i

https://github.com/starlinglab/authenticated-attributes/blob/main/uwazi/entity-page/src/App.svelte#L122

image
makew0rld commented 1 year ago

Solution: ignore any files upload with the name preview or preview.*

Do the same in the CID script

basilesimon commented 1 year ago

Could we actually ignore all supporting files named preview.*?

makew0rld commented 1 year ago

This should happen for demo2.

makew0rld commented 1 year ago

Quick fix in main: af6dad299b316ffa2570b372c0dc401b162e8b1b Full fix in demo2: 8ed2b4a78f0c138514898a4f3529cd687b4584b7