Skip to content

Commit

Permalink
Merge pull request #9999 from HerrickSpencer/patch-4
Browse files Browse the repository at this point in the history
Update Writing-Addon doc
  • Loading branch information
shilman authored Feb 29, 2020
2 parents 5abdfd8 + e85a128 commit ba69a67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/addons/writing-addons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ const PANEL_ID = `${ADDON_ID}/panel`;

const MyPanel = () => {
const value = useParameter(PARAM_KEY, null);

return <div>{value}</div>;
const item = value ? value.data : "";
return <div>{item}</div>;
}

addons.register(ADDON_ID, api => {
Expand Down

0 comments on commit ba69a67

Please sign in to comment.