[GH-ISSUE #1768] Quick command not showing right in form #1045

Closed
opened 2026-02-27 00:02:01 +03:00 by kerem · 1 comment
Owner

Originally created by @zxdong262 on GitHub (Jul 6, 2020).
Original GitHub issue: https://github.com/electerm/electerm/issues/1768

@zxdong262 我本地调试了下,this.props.form.getFieldValue('quickCommands')返回的是undefined
image
我Google了下,在前面加了一段如下的代码就可以了,我对react不熟,不知道原因。这种情况调试的时候,发现
this.props.form.getFieldValue('quickCommands')会走两次,第一次获取不到值,第二次就可以了
image

Originally posted by @degbug in https://github.com/electerm/electerm/issues/1761#issuecomment-654001264

Originally created by @zxdong262 on GitHub (Jul 6, 2020). Original GitHub issue: https://github.com/electerm/electerm/issues/1768 @zxdong262 我本地调试了下,`this.props.form.getFieldValue('quickCommands')`返回的是`undefined` ![image](https://user-images.githubusercontent.com/11486075/86553961-dba48c00-bf7e-11ea-8b04-8449be2b4326.png) 我Google了下,在前面加了一段如下的代码就可以了,我对react不熟,不知道原因。这种情况调试的时候,发现 `this.props.form.getFieldValue('quickCommands')`会走两次,第一次获取不到值,第二次就可以了 ![image](https://user-images.githubusercontent.com/11486075/86554050-18708300-bf7f-11ea-9267-ed52fe6afd98.png) _Originally posted by @degbug in https://github.com/electerm/electerm/issues/1761#issuecomment-654001264_
kerem 2026-02-27 00:02:01 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zxdong262 commented on GitHub (Jul 6, 2020):

感谢,我研究一下 @degbug

<!-- gh-comment-id:654108944 --> @zxdong262 commented on GitHub (Jul 6, 2020): 感谢,我研究一下 @degbug
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1045
No description provided.