Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-smf-web
Commits
01dbefcd
Commit
01dbefcd
authored
3 years ago
by
Sakthivel G
Browse files
Options
Download
Patches
Plain Diff
refactor: update date range value
parent
36017455
master
accept_file_type
cards-value-changes
delete-form
delete-user
form-issue
inspector-model
label-change
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/charts/ChartType.js
+2
-2
src/components/charts/ChartType.js
src/components/charts/WidgetNavBar.js
+2
-2
src/components/charts/WidgetNavBar.js
with
4 additions
and
4 deletions
+4
-4
src/components/charts/ChartType.js
+
2
−
2
View file @
01dbefcd
...
...
@@ -29,8 +29,8 @@ class ChartType extends React.Component {
callAPI
()
{
let
code
=
_
.
chain
(
this
.
props
).
get
(
"
chartData
"
).
first
().
get
(
"
id
"
).
value
();
let
startRange
=
moment
().
startOf
(
"
month
"
);
let
endRange
=
moment
().
endOf
(
"
month
"
);
let
startRange
=
moment
().
startOf
(
"
year
"
);
let
endRange
=
moment
().
endOf
(
"
year
"
);
startRange
=
Number
(
startRange
);
endRange
=
Number
(
endRange
);
let
thisMonth
=
{
startDate
:
startRange
,
endDate
:
endRange
};
...
...
This diff is collapsed.
Click to expand it.
src/components/charts/WidgetNavBar.js
+
2
−
2
View file @
01dbefcd
...
...
@@ -59,8 +59,8 @@ class WidgetNavBar extends Component {
* Function to get the chart data as per the dashboard selection
*/
getChartData
=
(
code
)
=>
{
let
startRange
=
moment
().
startOf
(
"
month
"
);
let
endRange
=
moment
().
endOf
(
"
month
"
);
let
startRange
=
moment
().
startOf
(
"
year
"
);
let
endRange
=
moment
().
endOf
(
"
year
"
);
startRange
=
Number
(
startRange
);
endRange
=
Number
(
endRange
);
let
thisMonth
=
{
startDate
:
startRange
,
endDate
:
endRange
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets