Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Commit 3e0d4a1

Browse files
authored
Merge pull request #395 from getblocklab/fix/repeater-delete-row
Fix an issue in removing repeater rows
2 parents d46f02c + 83d9548 commit 3e0d4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/blocks/components/repeater-rows.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ import { Fields } from './';
164164
* @return {Object} The rows.
165165
*/
166166
getRows( attribute ) {
167-
return ( attribute[ 'rows' ] ) ? attribute[ 'rows' ] : [ {} ];
167+
return ( attribute && attribute[ 'rows' ] ) ? attribute[ 'rows' ] : [ {} ];
168168
}
169169

170170
/**

0 commit comments

Comments
 (0)