feat(client): transform app url to editor (#41858)

This commit is contained in:
Shaun Hamilton
2021-04-20 22:47:42 +01:00
committed by GitHub
parent 6e481cd193
commit fd955635e5
3 changed files with 46 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import {
projectFormValuesSelector
} from '../redux';
import { tap, mapTo } from 'rxjs/operators';
import { transformEditorLink } from '../utils';
import envData from '../../../../../config/env.json';
const { forumLocation } = envData;
@@ -63,7 +64,7 @@ function createQuestionEpic(action$, state$, { window }) {
}
${
projectFormValues
?.map(([key, val]) => `${key}: ${val}\n`)
?.map(([key, val]) => `${key}: ${transformEditorLink(val)}\n`)
?.join('') || filesToMarkdown(files)
}