Skip to content

Commit

Permalink
fix(graphCard): sw-223 generated key from settings (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera authored Oct 12, 2022
1 parent 7d65db8 commit 1fb9799
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports[`GraphCard Component should setup basic settings: settings 1`] = `
/>
</ContextProvider>
<ContextProvider
key="graphCard_undefined"
key="graphCard_Sockets"
value={
{
"settings": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/graphCard/graphCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const GraphCard = ({ isDisabled, useProductGraphConfig: useAliasProductGraphConf
)) ||
null}
{standaloneFiltersSettings?.map(filtersSettings => (
<GraphCardContext.Provider key={`graphCard_${filtersSettings?.metric?.id}`} value={filtersSettings}>
<GraphCardContext.Provider key={`graphCard_${filtersSettings?.settings?.metric?.id}`} value={filtersSettings}>
<GraphCardMetricTotals>
<GraphCardChart />
</GraphCardMetricTotals>
Expand Down

0 comments on commit 1fb9799

Please sign in to comment.