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

Commit cbf61d5

Browse files
committed
Fix an issue where removing rows was unexpected
As Luke mentioned, it looks like this is from parentName being declared below it.
1 parent d46f02c commit cbf61d5

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
@@ -71,8 +71,8 @@ import { Fields } from './';
7171
return () => {
7272
const { parentBlockProps } = this.props;
7373
const attr = { ...parentBlockProps.attributes };
74-
const attribute = attr[ parentName ];
7574
const parentName = this.getParent();
75+
const attribute = attr[ parentName ];
7676
const repeaterRows = this.getRows( attribute );
7777

7878
if ( ! repeaterRows ) {

0 commit comments

Comments
 (0)