proper html handling
This commit is contained in:
parent
15c32f0679
commit
ecb22691a1
|
|
@ -165,7 +165,7 @@ const StepTreeItem: React.FC<{
|
||||||
const attachmentName = step.title.match(/^attach "(.*)"$/)?.[1];
|
const attachmentName = step.title.match(/^attach "(.*)"$/)?.[1];
|
||||||
const attachment = attachments.find(a => a.name === attachmentName);
|
const attachment = attachments.find(a => a.name === attachmentName);
|
||||||
if (attachment)
|
if (attachment)
|
||||||
return <AttachmentLink attachment={attachment} depth={depth} />;
|
return <AttachmentLink attachment={attachment} depth={depth} openInNewTab={getAttachmentCategory(attachment) === 'html'} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <TreeItem title={<span>
|
return <TreeItem title={<span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue