keystonejs/keystone-classic

Code format lost if using dependsOn

Open

#4,608 创建于 2018年4月4日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (2,288 fork)batch import
bughelp wanted

仓库指标

Star
 (14,656 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Expected behavior

When using dependsOn in a Type.Code field, it should keep its code formating.

Actual/Current behavior

When using dependOn in Type.Code field, the format defaults to a plain text field.

Steps to reproduce the actual/current behavior

code: {type: Types.Code, dependsOn: {type: "code"}"}

Environment

Software Version
Keystone 4.0.0-beta.5
Node v8.10.0

贡献者指南