Skip to content

Commit

Permalink
Merge pull request #960 from PaloAltoNetworks/deprecation-notice
Browse files Browse the repository at this point in the history
Fix deprecation notice
  • Loading branch information
sserrata authored Sep 10, 2024
2 parents 3dc71cd + a22e38a commit 96f9974
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export function createDeprecationNotice({
return guard(deprecated, () =>
createAdmonition({
children:
clean(description) ??
"This endpoint has been deprecated and may be replaced or removed in future versions of the API.",
description && description.length > 0
? clean(description)
: "This endpoint has been deprecated and may be replaced or removed in future versions of the API.",
})
);
}

0 comments on commit 96f9974

Please sign in to comment.