Skip to content

Commit

Permalink
v5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jul 4, 2024
1 parent 06de67f commit 9b6f97d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions jest/setup.js
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
import "jest-canvas-mock"

Element.prototype.getBoundingClientRect = jest.fn(() => {
return {
width: 120,
height: 120,
top: 0,
left: 0,
bottom: 0,
right: 0,
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/charts",
"version": "5.3.0",
"version": "5.3.1",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const keepoutRegex = ".*"
const keepRegex = "(" + keepoutRegex + ")"

const sortContexts = (contexts, contextScope) =>
isEmpty(difference(contexts, contextScope)) ? contexts : contextScope
isEmpty(difference(contexts, contextScope)) ? contextScope : contexts

const useColumns = (chart, options = {}) => {
const contextScope = useAttributeValue("contextScope")
Expand Down

0 comments on commit 9b6f97d

Please sign in to comment.