Skip to content

Commit dc106e4

Browse files
ENGG-3170: collection folder and files creation from import flow (#142)
1 parent 450c5a0 commit dc106e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/renderer/actions/local-sync/fs-manager.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ export class FsManager {
11611161
});
11621162
const writeResult = await writeContent(
11631163
descriptionFile,
1164-
{ description: collection.description },
1164+
collection.description,
11651165
new ReadmeRecordFileType()
11661166
);
11671167
if (writeResult.type === "error") {
@@ -1192,9 +1192,12 @@ export class FsManager {
11921192
id: appendPath(collectionFolder.path, COLLECTION_VARIABLES_FILE),
11931193
type: "file",
11941194
});
1195+
const parsedVariables = parseToEnvironmentEntity(
1196+
collection.data.variables
1197+
);
11951198
const writeResult = await writeContent(
11961199
variablesFile,
1197-
collection.data.variables,
1200+
parsedVariables,
11981201
new CollectionVariablesRecordFileType()
11991202
);
12001203
if (writeResult.type === "error") {

0 commit comments

Comments
 (0)