We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41f0c6a commit 2524898Copy full SHA for 2524898
nerdlets/geo-ops-nerdlet/MapLocationFilesUpload.js
@@ -55,6 +55,7 @@ export default class MapLocationFilesUpload extends React.Component {
55
);
56
delete schema.properties.map;
57
delete schema.properties.location;
58
+ schema.required = schema.required.filter(i => i !== 'guid');
59
60
// According to the "spec" we've asked them to adhere to
61
const pathToLocations = 'items';
@@ -121,7 +122,7 @@ export default class MapLocationFilesUpload extends React.Component {
121
122
// console.log(fileData);
123
124
const formatted = fileData.map(item => {
- if (item.guid === '1111-1111-1111-1111' || !item.guid) {
125
+ if (!item.guid) {
126
item.guid = uuid();
127
}
128
return item;
0 commit comments