mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Prevent external modification of nested geojson objects
This commit is contained in:
parent
ac8425752b
commit
0ea9fd3336
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ export async function parseFile(file, previewCallback = null, transformDetails,
|
|||
}
|
||||
if (previewCallback) {
|
||||
const defaultName = _.get(cleanAndValidJson, 'name', 'Import File');
|
||||
previewCallback(cleanAndValidJson, defaultName);
|
||||
previewCallback(_.cloneDeep(cleanAndValidJson), defaultName);
|
||||
}
|
||||
resolve(cleanAndValidJson);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue