Skip to content

Commit

Permalink
handle comments
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitian committed Mar 3, 2020
1 parent b6a15a8 commit 8dc8684
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const TriggerCreationModal: React.FC<TriggerCreationModalProps> = props =

const onTriggerPhrasesChange = (body: string) => {
const errors = formData.errors;
const content = '#' + formData.intent + '\n\r' + body;
const content = '#' + formData.intent + '\n' + body;
const { diagnostics } = luIndexer.parse(content);
errors.triggerPhrases = combineMessage(diagnostics);
setFormData({ ...formData, triggerPhrases: body, errors });
Expand Down

0 comments on commit 8dc8684

Please sign in to comment.