Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ecolyo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
Ecolyo
Commits
74c76c4a
Commit
74c76c4a
authored
3 years ago
by
Guilhem CARRON
Browse files
Options
Downloads
Patches
Plain Diff
fix(conso): Resolve issue data doesn't refresh between conso tabs
parent
7cded543
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!549
chore(release): 1.7.1
,
!542
Resolve "Données gaz s'affichent au lieu de données eau (même bug que #208 ?)"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Home/ConsumptionView.tsx
+5
-4
5 additions, 4 deletions
src/components/Home/ConsumptionView.tsx
with
5 additions
and
4 deletions
src/components/Home/ConsumptionView.tsx
+
5
−
4
View file @
74c76c4a
...
@@ -53,13 +53,14 @@ const ConsumptionView: React.FC<ConsumptionViewProps> = ({
...
@@ -53,13 +53,14 @@ const ConsumptionView: React.FC<ConsumptionViewProps> = ({
const
updatekey
=
const
updatekey
=
fluidType
!==
FluidType
.
MULTIFLUID
&&
fluidStatus
[
fluidType
].
lastDataDate
fluidType
!==
FluidType
.
MULTIFLUID
&&
fluidStatus
[
fluidType
].
lastDataDate
?
`
${
fluidStatus
[
fluidType
].
lastDataDate
!
.
toLocaleString
()}
+
${
?
`
${
fluidStatus
[
fluidStatus
[
fluidType
].
status
fluidType
}
`
].
lastDataDate
!
.
toLocaleString
()}
+
${
fluidStatus
[
fluidType
].
status
+
fluidType
}
`
:
''
:
''
const
lastDataDateKey
=
const
lastDataDateKey
=
fluidType
!==
FluidType
.
MULTIFLUID
&&
fluidStatus
[
fluidType
].
lastDataDate
fluidType
!==
FluidType
.
MULTIFLUID
&&
fluidStatus
[
fluidType
].
lastDataDate
?
fluidStatus
[
fluidType
].
lastDataDate
!
.
toLocaleString
()
?
`
${
fluidStatus
[
fluidType
].
lastDataDate
!
.
toLocaleString
()
+
fluidType
}
`
:
''
:
''
const
defineHeaderHeight
=
useCallback
((
height
:
number
)
=>
{
const
defineHeaderHeight
=
useCallback
((
height
:
number
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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