Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaik Janipasha
AmendsenProject
Commits
d065a92c
Unverified
Commit
d065a92c
authored
Jul 30, 2020
by
Verdan Mahmood
Committed by
GitHub
Jul 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes owner's CTA based on user id, and not display name (#526)
parent
478c34bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
helpers.ts
..._application/static/js/ducks/tableMetadata/api/helpers.ts
+1
-2
No files found.
amundsen_application/static/js/ducks/tableMetadata/api/helpers.ts
View file @
d065a92c
...
@@ -50,10 +50,9 @@ export function getTableDataFromResponseData(
...
@@ -50,10 +50,9 @@ export function getTableDataFromResponseData(
export
function
getTableOwnersFromResponseData
(
export
function
getTableOwnersFromResponseData
(
responseData
:
API
.
TableDataAPI
responseData
:
API
.
TableDataAPI
):
OwnerDict
{
):
OwnerDict
{
// TODO: owner needs proper id, until then we have to remember that we are using display_name
const
ownerObj
=
responseData
.
tableData
.
owners
.
reduce
(
const
ownerObj
=
responseData
.
tableData
.
owners
.
reduce
(
(
resultObj
,
currentOwner
)
=>
{
(
resultObj
,
currentOwner
)
=>
{
resultObj
[
currentOwner
.
display_name
]
=
currentOwner
as
User
;
resultObj
[
currentOwner
.
user_id
]
=
currentOwner
as
User
;
return
resultObj
;
return
resultObj
;
},
},
{}
{}
...
...
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