Skip to content

Commit 2524898

Browse files
committed
refactor: removing uuid requirement in the data file, we will autogenerate it for you
1 parent 41f0c6a commit 2524898

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nerdlets/geo-ops-nerdlet/MapLocationFilesUpload.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default class MapLocationFilesUpload extends React.Component {
5555
);
5656
delete schema.properties.map;
5757
delete schema.properties.location;
58+
schema.required = schema.required.filter(i => i !== 'guid');
5859

5960
// According to the "spec" we've asked them to adhere to
6061
const pathToLocations = 'items';
@@ -121,7 +122,7 @@ export default class MapLocationFilesUpload extends React.Component {
121122
// console.log(fileData);
122123

123124
const formatted = fileData.map(item => {
124-
if (item.guid === '1111-1111-1111-1111' || !item.guid) {
125+
if (!item.guid) {
125126
item.guid = uuid();
126127
}
127128
return item;

0 commit comments

Comments
 (0)