mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-20 23:17:30 +03:00
This commit is contained in:
parent
feb4a05618
commit
f20fc80cfc
@ -225,7 +225,10 @@ export const downloadObjectAsJsonFile = (fileName, object) => {
|
||||
: fileName + jsonSuffix;
|
||||
|
||||
const dataString =
|
||||
'data:' + contentType + ',' + encodeURIComponent(JSON.stringify(object));
|
||||
'data:' +
|
||||
contentType +
|
||||
',' +
|
||||
encodeURIComponent(JSON.stringify(object, null, 2));
|
||||
|
||||
downloadFile(fileNameWithSuffix, dataString);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user