Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit 63e5584

Browse files
committed
add getRecordType method to NsRecord
1 parent aae4dff commit 63e5584

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Utils/record.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function NsRecord(name, defaultValues = {}) {
4747
getLineItemCount: sublist => this.values[sublist].length,
4848
getLineItemText: (sublist, field, index) => this.values[sublist][index - 1][`${field}_display`],
4949
getLineItemValue: (sublist, field, index) => this.values[sublist][index - 1][field],
50+
getRecordType: () => this.type,
5051
getSublistText: options => this.values[options.sublistId][options.line][options.fieldId],
5152
getSublistValue: options => this.values[options.sublistId][options.line][options.fieldId],
5253
getSublists: sublistObj,

0 commit comments

Comments
 (0)