Skip to content

Commit

Permalink
fix: lu serialization from form component (#2403)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwhitten authored Mar 27, 2020
1 parent 65b6643 commit dc30228
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 dc30228

Please sign in to comment.