Tooltip for "Properties" and "Objects" panels is "[object Object]"
Describe the bug
Tooltip for "Properties" and "Objects" panels is "[object Object]"
To Reproduce
Steps to reproduce the behavior: Open a project and view a scene. Make sure the properties panel is open. Mouse over the title "Properties"

I can't take a screenshot with the tool tip at the same time.
Other details
Windows 10 laptop. beta88 desktop version
Sure, you must first investigate why "[object Object]" is shown. Probably just hide the tooltip or show a description that we can decide on for each panel (in this case, feel free to go ahead with your ideas, and we can discuss in the PR if these descriptions can be improved)
I assume it's trying to read what is an object as a string for some reason
On Sun, Mar 1, 2020, 12:58 PM Florian Rival [email protected] wrote:
Sure, you must first investigate why "[object Object]" is shown. Probably just hide the tooltip or show a description that we can decide on for each panel (in this case, feel free to go ahead with your ideas, and we can discuss in the PR if these descriptions can be improved)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/4ian/GDevelop/issues/1484?email_source=notifications&email_token=ABRRWVPDMPZ6PASLC3EDPUTRFJLXPA5CNFSM4K6666BKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENM6NDQ#issuecomment-593094286, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRRWVNL5X4PGCEJAQKKZYTRFJLXPANCNFSM4K6666BA .
Yep, there is an object passed to a title or some other attribute somewhere - might be inside react-mosaic.
I am checking this issue out.
@4ian @blurymind I tried solving the issue but there seems to be a roadblock.
The issue arises as we are passing title in various app/src/{Scene, Resources}Editor as:
title: <Trans>Objects</Trans>
Basically, converting the normal "Objects" string into an object.
When I console logged editor.title in app/src/UI/EditorMosaic/index,js , it gives:
>$$typeof: Symbol(react.element)
...
>props:
> > id: "Properties"
...
After seeing this, I passed title as editor.title.props.id in
Cannot get title.props because:
• property props is missing in $Iterable [1].
• property props is missing in Boolean [1].
• property props is missing in Number [1].
• property props is missing in React.Portal [1].
• property props is missing in String [1].
• property props is missing in null [1].
• property props is missing in undefined [1].
I tried searching for solutions to this, but I can't find anything concrete. Reference: https://github.com/facebook/flow/issues/1964,
The library we are using for MosaicWIndow (https://github.com/nomcopter/react-mosaic) expects title: string
I assume it's trying to read what is an object as a string for some reason
Yes, this is exactly what is happening.
Yep, there is an object passed to a title or some other attribute somewhere
title is a <Trans> component, and the div's title cannot read it and shows object instead.

const Div = (props) => {
<I18n>
{({ i18n }) => (
<div title={ i18n._(props.title)}>
{ i18n._(props.title) }
</div>
)}
</I18n>
}
title: <Div title={tProperties}/>
title: <Div title={tObjects}/>
title: <Div title={tObjects Groups}/>
This can fix the issue, should I implement it @4ian @blurymind ?
See my comments on https://github.com/4ian/GDevelop/pull/1490 :)