0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-04 13:50:13 -05:00

fix(table-plugin): i#8965 empty cell values when importing csv files

This commit is contained in:
María Valderrama 2024-10-18 09:36:32 +02:00
parent 56465f4a31
commit d8d071c1aa

View file

@ -77,7 +77,7 @@ export class AppComponent {
?.split(/\r?\n|\r|\n/g)
.map((it) => it.trim())
.filter((it) => it !== '')
.map((it) => it.split(','));
.map((it) => it.split(',').map((it) => (!it ? ' ' : it.trim())));
this.sendMessage({
content: {