Skip to content

Commit

Permalink
fix: lu serialization from form component (microsoft#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwhitten committed Mar 27, 2020
1 parent 1d268b2 commit 06f1ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Composer/packages/ui-plugins/luis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const config: PluginConfig = {
const luFile = luFiles.find(f => f.id === `${currentDialog.id}.${locale}`);

if (luFile) {
props.onChange(`${luFile.id}.lu`);
// strip locale out of id so it doesn't get serialized
// into the .dialog file
props.onChange(`${luFile.id.split('.')[0]}.lu`);
} else {
alert(`NO LU FILE WITH NAME ${currentDialog.id}`);
}
Expand Down

0 comments on commit 06f1ddc

Please sign in to comment.