chore: prettify collection contents before export (#4687)
Co-authored-by: Dmitry Mukovkin <d.mukovkin@cft.ru> Co-authored-by: nivedin <nivedinp@gmail.com>
This commit is contained in:
parent
9e227982c9
commit
0aa509e804
2 changed files with 3 additions and 3 deletions
|
|
@ -2666,7 +2666,7 @@ const initializeDownloadCollection = async (
|
|||
*/
|
||||
const exportData = async (collection: HoppCollection | TeamCollection) => {
|
||||
if (collectionsType.value.type === "my-collections") {
|
||||
const collectionJSON = JSON.stringify(collection)
|
||||
const collectionJSON = JSON.stringify(collection, null, 2)
|
||||
|
||||
const name = (collection as HoppCollection).name
|
||||
|
||||
|
|
@ -2685,7 +2685,7 @@ const exportData = async (collection: HoppCollection | TeamCollection) => {
|
|||
},
|
||||
async (coll) => {
|
||||
const hoppColl = teamCollToHoppRESTColl(coll)
|
||||
const collectionJSONString = JSON.stringify(hoppColl)
|
||||
const collectionJSONString = JSON.stringify(hoppColl, null, 2)
|
||||
|
||||
await initializeDownloadCollection(
|
||||
collectionJSONString,
|
||||
|
|
|
|||
|
|
@ -254,5 +254,5 @@ export const getTeamCollectionJSON = async (teamID: string) => {
|
|||
}
|
||||
|
||||
const hoppCollections = collections.map(teamCollectionJSONToHoppRESTColl)
|
||||
return E.right(JSON.stringify(hoppCollections))
|
||||
return E.right(JSON.stringify(hoppCollections, null, 2))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue