mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
🐛 Fix bug that HTML did get rendered in JSON view
This commit is contained in:
parent
44c28b3491
commit
065937a39c
|
@ -130,7 +130,6 @@
|
|||
path=""
|
||||
:highlightSelectedNode="true"
|
||||
:selectOnClickNode="true"
|
||||
:custom-value-formatter="customLinkFormatter"
|
||||
@click="dataItemClicked"
|
||||
class="json-data"
|
||||
/>
|
||||
|
@ -418,13 +417,6 @@ export default mixins(
|
|||
this.binaryDataDisplayVisible = false;
|
||||
this.binaryDataDisplayData = null;
|
||||
},
|
||||
customLinkFormatter (data: object | number | string, key: string, parent: object, defaultFormatted: () => string) {
|
||||
if (typeof data === 'string' && data.startsWith('http://')) {
|
||||
return `<a style="color:red;" href="${data}" target="_blank">"${data}"</a>`;
|
||||
} else {
|
||||
return defaultFormatted;
|
||||
}
|
||||
},
|
||||
convertToJson (inputData: INodeExecutionData[]): IDataObject[] {
|
||||
const returnData: IDataObject[] = [];
|
||||
inputData.forEach((data) => {
|
||||
|
|
Loading…
Reference in a new issue