回答編集履歴
2
漏れ
test
CHANGED
@@ -12,6 +12,6 @@
|
|
12
12
|
|
13
13
|
- let currentData = currentState[index].attribute;
|
14
14
|
|
15
|
-
+ let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目
|
15
|
+
+ let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目はデフォルト値
|
16
16
|
|
17
17
|
```
|
1
漏れ
test
CHANGED
@@ -12,6 +12,6 @@
|
|
12
12
|
|
13
13
|
- let currentData = currentState[index].attribute;
|
14
14
|
|
15
|
-
+ let currentData = _.get(currentState, `${index}.${attribute}`, );
|
15
|
+
+ let currentData = _.get(currentState, `${index}.${attribute}`, ''); // 3番目
|
16
16
|
|
17
17
|
```
|