dosubot[bot] commented on issue #31592:
URL: https://github.com/apache/superset/issues/31592#issuecomment-2558765228

   <!-- Answer -->
   The issue you're encountering, where the owner list displays "undefined 
undefined" after editing chart properties, is likely related to how the 
frontend handles the rendering of owner badges. This can occur if the 
`extractOwnerNames` function, which constructs the owner's name, does not 
properly handle cases where `first_name` and `last_name` are undefined. This 
results in the display of "undefined undefined" 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/utils/getOwnerName.test.ts)</sup>.
   
   To address this, ensure that the `extractOwnerNames` function includes 
checks to verify that `first_name` and `last_name` are defined before 
concatenating them. Additionally, the frontend code should handle cases where 
these values are undefined or null, providing a fallback or default value to 
prevent such display issues.
   
   The fact that the owner reverts to normal after refreshing suggests that the 
data is correctly stored in the backend, but the initial rendering might be 
flawed due to these undefined values. Checking the frontend logic for handling 
owner data and ensuring proper state management and data fetching can help 
resolve this issue.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/7a8215df-4a09-477b-8ae6-7eb4c3a37307?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/7a8215df-4a09-477b-8ae6-7eb4c3a37307?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/7a8215df-4a09-477b-8ae6-7eb4c3a37307?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/7a8215df-4a09-477b-8ae6-7eb4c3a37307?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/7a8215df-4a09-477b-8ae6-7eb4c3a37307?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/7a8215df-4a09-477b-8ae6-7eb4c3a37307?feedback_type=other)</sup>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to