From 134b486ea281ef5fa7659b563e751362f5b44707 Mon Sep 17 00:00:00 2001 From: Zebulan Stanphill Date: Thu, 7 Apr 2022 23:13:35 -0500 Subject: [PATCH] Revise JSDoc for permalink const. --- packages/block-library/src/table-of-contents/edit.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/table-of-contents/edit.js b/packages/block-library/src/table-of-contents/edit.js index 0dcbb7c1a88abb..fde27c4bec1ea3 100644 --- a/packages/block-library/src/table-of-contents/edit.js +++ b/packages/block-library/src/table-of-contents/edit.js @@ -134,9 +134,8 @@ export default function TableOfContentsEdit( { let headingPage = 1; /** - * If the core/editor store is available, we can add permalinks to the - * generated table of contents. This variable will be a link to - * current post including pagination query if necessary. + * A permalink to the current post. If the core/editor store is + * unavailable, this variable will be null. */ const permalink = editorSelectors?.getPermalink() ?? null;