Skip to content

Commit

Permalink
Merge pull request #487 from dnbexperience/rc/v7
Browse files Browse the repository at this point in the history
release of v7.0.0-beta.1
  • Loading branch information
tujoworker authored Mar 26, 2020
2 parents cff979f + cf86a86 commit f1cf648
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Welcome Info'
search: false
skipSearch: true
---

## Please Contribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const docsQuery = /* GraphQL */ `
title
description
search
skipSearch
}
headings {
value
Expand Down Expand Up @@ -48,9 +49,9 @@ const flatten = arr =>
({
node: {
fields: { slug },
frontmatter: { search }
frontmatter: { skipSearch }
}
}) => !slug.includes('not_in_use') && search !== false
}) => !slug.includes('not_in_use') && skipSearch !== true
)
.map(
({ node: { children, fields, frontmatter, headings, ...rest } }) => {
Expand Down
8 changes: 6 additions & 2 deletions packages/dnb-ui-lib/src/components/number/Number.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ const enhanceSR = (value, aria) => {

export const formatNumber = (number, locale, options = {}) => {
try {
if (typeof Number.toLocaleString === 'function') {
if (
typeof Number !== 'undefined' &&
typeof Number.toLocaleString === 'function'
) {
return parseFloat(number).toLocaleString(locale, options)
} else if (
typeof Intl !== 'undefined' &&
Expand All @@ -428,7 +431,8 @@ export const formatNumber = (number, locale, options = {}) => {
number,
locale,
options
])}`
])}`,
e
)
}
return number
Expand Down

0 comments on commit f1cf648

Please sign in to comment.