Unverified Commit d065a92c authored by Verdan Mahmood's avatar Verdan Mahmood Committed by GitHub

Makes owner's CTA based on user id, and not display name (#526)

parent 478c34bd
......@@ -50,10 +50,9 @@ export function getTableDataFromResponseData(
export function getTableOwnersFromResponseData(
responseData: API.TableDataAPI
): OwnerDict {
// TODO: owner needs proper id, until then we have to remember that we are using display_name
const ownerObj = responseData.tableData.owners.reduce(
(resultObj, currentOwner) => {
resultObj[currentOwner.display_name] = currentOwner as User;
resultObj[currentOwner.user_id] = currentOwner as User;
return resultObj;
},
{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment