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 +7 -4
- package/package.json +1 -1
- package/src/components/FileUploader.js +8 -5
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
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
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
|
@@ -131,10 +131,13 @@ export const FileUploader = ({
|
|
|
131
131
|
let array = [];
|
|
132
132
|
|
|
133
133
|
for (let index = 0; index < propertyNames.length; index++) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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}
|