Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
3969dedf
Commit
3969dedf
authored
Oct 25, 2022
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix UTILS.getPageParamValue
parent
21450480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
constructor/library/UTILS.js
constructor/library/UTILS.js
+3
-2
No files found.
constructor/library/UTILS.js
View file @
3969dedf
...
...
@@ -44,8 +44,9 @@ UTILS.changeLabel = (id, ru, kk, en = ru) => fire({type: 'change_label', text: l
UTILS
.
getPageParamValue
=
paramName
=>
{
const
{
paramValues
,
params
,
pageParams
}
=
Cons
.
getCurrentPage
();
const
paramID
=
params
.
find
(
x
=>
x
.
name
==
paramName
).
id
;
return
paramValues
.
find
(
x
=>
x
.
pageParamID
==
paramID
||
x
.
pageParamName
==
paramName
).
value
;
const
param
=
params
.
find
(
x
=>
x
.
name
==
paramName
);
if
(
!
param
||
!
param
.
hasOwnProperty
(
'
id
'
))
return
null
;
return
paramValues
.
find
(
x
=>
x
.
pageParamID
==
param
.
id
||
x
.
pageParamName
==
paramName
)?.
value
||
null
;
}
UTILS
.
formatDate
=
function
(
datetime
,
time
)
{
...
...
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