diff --git a/docs/src/pages/addons/writing-addons/index.md b/docs/src/pages/addons/writing-addons/index.md index 02bbe782207..f675ea18b40 100644 --- a/docs/src/pages/addons/writing-addons/index.md +++ b/docs/src/pages/addons/writing-addons/index.md @@ -74,8 +74,8 @@ const PANEL_ID = `${ADDON_ID}/panel`; const MyPanel = () => { const value = useParameter(PARAM_KEY, null); - - return
{value}
; + const item = value ? value.data : ""; + return
{item}
; } addons.register(ADDON_ID, api => {