Sp-dev-fx-controls-react: ListItemAttachments error after removing attachment

Created on 8 May 2019  路  5Comments  路  Source: pnp/sp-dev-fx-controls-react

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: [ 1.13.0 ]

In the listItemAttachments control, when you delete a file you have got an error.

Steps to Reproduce
Delete a file and follow the steps. After the file has been deleted, you get an error:

Uncaught TypeError: Cannot read property 'width' of undefined
at DocumentCardPreview._renderPreviewImage (DocumentCardPreview.tsx:47)
at DocumentCardPreview.render (DocumentCardPreview.tsx:26)
at DocumentCardPreview.obj. [as render] (BaseComponent.ts:254)
at Dn (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)
at Mn (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)
at Fn (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)
at xr (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)
at wr (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)
at Vr (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)
at Wr (sp-pages-assembly_en-us_cb7c5ac05a2eaa8aa94733475559e220.js:957)

image

Needs bug

All 5 comments

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

Yes, I see the same. Would be great to get this fixed in this otherwise awesome control :)

@bva999 or @chrisobriensp would you be able to test out the latest beta version? It might be that a fix to the ListItemAttachments control has also fixed this one.

Here you can read more information on how you can test out the latest beta version: https://sharepoint.github.io/sp-dev-fx-controls-react/beta/

Yes, it works for me in beta version!

Seems to be fixed a while ago.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

msgx picture msgx  路  4Comments

AdiuTankT72 picture AdiuTankT72  路  4Comments

enti333 picture enti333  路  7Comments

lenain71 picture lenain71  路  3Comments

Arknev picture Arknev  路  3Comments