Skip to content

Commit

Permalink
Fix [Feature Vectors] UI crash upon click on Delete feature vector (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan7empest authored Dec 27, 2023
1 parent 8e1c1e7 commit 465e30d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const FeatureVectors = ({
)
.unwrap()
.then(response => {
const tag = [...response.payload, TAG_FILTER_ALL_ITEMS].includes(filtersStore.tag)
const tag = [...response, TAG_FILTER_ALL_ITEMS].includes(filtersStore.tag)
? filtersStore.tag
: TAG_FILTER_LATEST

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ export const generatePageData = selectedFeatureSet => {

export const generateActionsMenu = (onDeleteFeatureVector, toggleConvertedYaml) => [
[
{
label: 'View YAML',
icon: <Yaml />,
onClick: toggleConvertedYaml
},
{
label: 'Delete',
icon: <Delete />,
className: 'danger',
onClick: onDeleteFeatureVector
},
{
label: 'View YAML',
icon: <Yaml />,
onClick: toggleConvertedYaml
}
]
]
Expand Down

0 comments on commit 465e30d

Please sign in to comment.