Skip to content

Commit

Permalink
Merge pull request finos#34 from Finsemble/49663-raise-intent-fix
Browse files Browse the repository at this point in the history
fix raising intent bug
  • Loading branch information
kenny-ciq authored Nov 9, 2022
2 parents 232e927 + 22fb1e1 commit 23c50eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toolbox/fdc3-workbench/src/components/Intents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const Intents = observer(({handleTabChange}: {handleTabChange:any}) => {
};

useEffect(() => {
setIntentValue(null)
const fetchIntents = async () => {
try {
if(raiseIntentContext) {
Expand All @@ -230,8 +231,8 @@ export const Intents = observer(({handleTabChange}: {handleTabChange:any}) => {
setIntentObjects(appIntents);
setIntentsForContext(appIntents.map(({intent}: {intent:any})=>{
return {
title: intent.displayName,
value: intent.displayName
title: intent.name.split('.')[1],
value: intent.name.split('.')[1]
}
}));
}
Expand Down

0 comments on commit 23c50eb

Please sign in to comment.