authscape 1.0.262 → 1.0.265

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/index.js CHANGED
@@ -1307,10 +1307,12 @@ var FileUploader = function FileUploader(_ref) {
1307
1307
  var propertyValues = Object.values(params);
1308
1308
  var array = [];
1309
1309
  for (var index = 0; index < propertyNames.length; index++) {
1310
- array.push({
1311
- key: propertyNames[index],
1312
- value: propertyValues[index]
1313
- });
1310
+ if (propertyNames[index] != null && propertyValues[index] != null) {
1311
+ array.push({
1312
+ key: propertyNames[index],
1313
+ value: propertyValues[index]
1314
+ });
1315
+ }
1314
1316
  }
1315
1317
  setParameters(array);
1316
1318
  }
@@ -1377,6 +1379,7 @@ var FileUploader = function FileUploader(_ref) {
1377
1379
  display: "none"
1378
1380
  }
1379
1381
  }), variant == "custom" && /*#__PURE__*/_react["default"].createElement(_system.Box, {
1382
+ ref: refOveride,
1380
1383
  onClick: function onClick() {
1381
1384
  handleUploadFileInput();
1382
1385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.262",
3
+ "version": "1.0.265",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -131,10 +131,13 @@ export const FileUploader = ({
131
131
  let array = [];
132
132
 
133
133
  for (let index = 0; index < propertyNames.length; index++) {
134
- array.push({
135
- key: propertyNames[index],
136
- value: propertyValues[index],
137
- });
134
+ if (propertyNames[index] != null && propertyValues[index] != null)
135
+ {
136
+ array.push({
137
+ key: propertyNames[index],
138
+ value: propertyValues[index],
139
+ });
140
+ }
138
141
  }
139
142
 
140
143
  setParameters(array);
@@ -173,7 +176,7 @@ export const FileUploader = ({
173
176
  />
174
177
 
175
178
  {variant == "custom" &&
176
- <Box onClick={() => {
179
+ <Box ref={refOveride} onClick={() => {
177
180
  handleUploadFileInput();
178
181
  }}>
179
182
  {children}