We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ff0a8 commit fac33ddCopy full SHA for fac33dd
snippets/sheets/unlink_urls/index.js
@@ -8,9 +8,8 @@ function unlinkUrls_(range = SpreadsheetApp.getActiveRange()) {
8
return range.setRichTextValues(
9
range.getRichTextValues().map((rowRichTextValues) =>
10
rowRichTextValues.map((richTextValue) => {
11
- let copy;
12
if (richTextValue.getRuns().some((ruin) => ruin.getLinkUrl())) {
13
- copy = richTextValue.copy();
+ const copy = richTextValue.copy();
14
copy.setLinkUrl(undefined);
15
return copy.build();
16
}
0 commit comments