Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Data-template): fix bug when deleting fields #1907

Merged
merged 3 commits into from
May 22, 2023
Merged

Conversation

zhangzhonghe
Copy link
Contributor

@zhangzhonghe zhangzhonghe commented May 22, 2023

Description (Bug 描述)

  • 数据模板创建后,删除关系字段后无法正常使用报错

Steps to reproduce (复现步骤)

  1. 先选择关系字段中的关系字段,保存
  2. 再去数据表中删除关系字段中的关系字段

Expected behavior (预期行为)

  • 没有报错,如果模板中的字段已被删除干净,则需要告知用户原因

Actual behavior (实际行为)

  • 有错误信息

Related issues (相关 issue)

Reason (原因)

  • 因用户删除了对应的字段,导致后端查询不到该字段而产生错误。

Solution (解决方案)

  1. 前端请求模板数据之前会检查一下模板中的字段是否已被删除
  2. 如果已经被删除则会被过滤掉
  3. 如果字段已被删除干净,则告知用户需要重新配置模板

@chenos chenos merged commit 110b00b into main May 22, 2023
4 checks passed
@chenos chenos deleted the zzh/fix-data-template branch May 22, 2023 09:17
Dunqing pushed a commit that referenced this pull request May 23, 2023
* chore: add translation

* fix(Data-template): fix bug when deleting fields

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants