Skip to content

Commit

Permalink
Merge pull request #8109 from RasaHQ/playground-callback-dependencies
Browse files Browse the repository at this point in the history
Add all missing dependencies to Rasa Playground `onLiveCodeChange` callback function
  • Loading branch information
alwx committed Mar 4, 2021
2 parents 776406c + 54e81db commit eb408bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/8109.docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update Rasa Playground to correctly use `tracking_id` when calling API methods.
11 changes: 10 additions & 1 deletion docs/themes/theme-custom/theme/Prototyper/prototyper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,16 @@ const Prototyper = ({
}),
});
}
}, [setTrainingData, chatState, setChatState]);
}, [
clearPollingInterval,
hasStarted,
setHasStarted,
trackingId,
chatState,
setChatState,
setTrainingData,
jsonHeaders
]);

const trainModel = (trainingData) => {
setChatState("training");
Expand Down

0 comments on commit eb408bb

Please sign in to comment.