Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4b0ad174
Commit
4b0ad174
authored
May 28, 2019
by
Šimon Podlipský
Committed by
Torkel Ödegaard
May 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Frontend/utils: Import has only from lodash (#17311)
parent
83af1bdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
public/app/core/utils/kbn.ts
+2
-2
No files found.
public/app/core/utils/kbn.ts
View file @
4b0ad174
import
_
from
'lodash'
;
import
{
has
}
from
'lodash'
;
import
{
getValueFormat
,
getValueFormatterIndex
,
getValueFormats
,
stringToJsRegex
}
from
'@grafana/ui'
;
import
deprecationWarning
from
'@grafana/ui/src/utils/deprecationWarning'
;
...
...
@@ -193,7 +193,7 @@ kbn.calculateInterval = (range, resolution, lowLimitInterval) => {
kbn.describe_interval = str => {
const matches = str.match(kbn.interval_regex);
if (!matches || !
_.
has(kbn.intervals_in_seconds, matches[2])) {
if (!matches || !has(kbn.intervals_in_seconds, matches[2])) {
throw new Error('Invalid interval string, expecting a number followed by one of "
Mwdhmsy
"');
} else {
return {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment