Skip to content

Commit

Permalink
[frontend] action on 'No label' click in 'Add entities' panel (#8985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit authored Jan 31, 2025
1 parent 43d00f0 commit 96544fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ const ContainerAddStixCoreObjects = (props) => {
mapping={mapping}
containerRef={containerRef}
enableReferences={enableReferences}
onLabelClick={helpers.handleAddFilter}
/>
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const ContainerAddStixCreObjectsInLineLoader: FunctionComponent<ContainerAddStix
setNumberOfElements={helpers.handleSetNumberOfElements}
containerRef={{ current: containerRef }}
enableReferences={enableReferences}
onLabelClick={helpers.handleAddFilter}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,8 @@ class ContainerAddStixCoreObjectsLinesComponent extends Component {
hasMore={relay.hasMore.bind(this)}
isLoading={relay.isLoading.bind(this)}
dataList={dataList}
globalCount={R.pathOr(
nbOfRowsToLoad,
['stixCoreObjects', 'pageInfo', 'globalCount'],
this.props.data,
)}
globalCount={this.props.data?.stixCoreObjects?.pageInfo?.globalCount ?? nbOfRowsToLoad}
onLabelClick={this.props.onLabelClick}
LineComponent={<ContainerAddStixCoreObjectsLine />}
DummyLineComponent={<ContainerAddStixCoreObjecstLineDummy />}
dataColumns={dataColumns}
Expand Down Expand Up @@ -376,6 +373,7 @@ ContainerAddStixCoreObjectsLinesComponent.propTypes = {
mapping: PropTypes.bool,
containerRef: PropTypes.object,
enableReferences: PropTypes.bool,
onLabelClick: PropTypes.func,
};

export const containerAddStixCoreObjectsLinesQuery = graphql`
Expand Down

0 comments on commit 96544fc

Please sign in to comment.