Skip to content

Commit

Permalink
Merge pull request #1368 from nextcloud/fix/1339
Browse files Browse the repository at this point in the history
fix: check for null in import preview
  • Loading branch information
enjeck authored Sep 18, 2024
2 parents 5cc780c + 900c3eb commit 4711c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/modals/ImportPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default {
for (let i = 0; i < this.previewData.rows.length; i++) {
// Limit value length to 30 characters
let value = this.previewData.rows[i][colIndex]
if (value.length > 20) {
if (value && value.length > 20) {
value = value.substring(0, 20) + '...'
}
if (i > 0) {
Expand Down

0 comments on commit 4711c12

Please sign in to comment.