fix: no logging of hidden fields

This commit is contained in:
chenos 2021-04-01 09:52:43 +08:00
parent 0902bb5529
commit 29dca49b02
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ export default async function (model, options) {
if (changed) {
changed.forEach((key: string) => {
const field = fields.get(key) || fieldsList.find((item: Field) => item.options.field === key);
if (field) {
if (field && !field.options.hidden && field.options.type !== 'formula') {
changes.push({
field: field.options,
after: model.get(key)

View File

@ -16,7 +16,7 @@ export default async function (model, options) {
if (changed) {
changed.forEach((key: string) => {
const field = fields.get(key) || fieldsList.find((item: Field) => item.options.field === key);
if (field && field.options.type !== 'formula') {
if (field && !field.options.hidden && field.options.type !== 'formula') {
changes.push({
field: field.options,
after: model.get(key),