@agroyaar/sdk 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -157,7 +157,10 @@ var mappers = {
157
157
  placeholder: dto.placeholder,
158
158
  isRequired: dto.required,
159
159
  type: dto.kindName,
160
- options: dto.options.map((item) => ({ label: item.label, value: item.id }))
160
+ options: dto.options?.map((item) => ({
161
+ label: item.label,
162
+ value: item.id
163
+ })) ?? []
161
164
  }),
162
165
  getQuestions: (dto) => dto.map(mappers.getQuestion),
163
166
  getMechanizationMovementChange: ({
package/dist/index.mjs CHANGED
@@ -121,7 +121,10 @@ var mappers = {
121
121
  placeholder: dto.placeholder,
122
122
  isRequired: dto.required,
123
123
  type: dto.kindName,
124
- options: dto.options.map((item) => ({ label: item.label, value: item.id }))
124
+ options: dto.options?.map((item) => ({
125
+ label: item.label,
126
+ value: item.id
127
+ })) ?? []
125
128
  }),
126
129
  getQuestions: (dto) => dto.map(mappers.getQuestion),
127
130
  getMechanizationMovementChange: ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agroyaar/sdk",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",