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 58967ae commit f51f4b6Copy full SHA for f51f4b6
src/commands/util/walkthrough.ts
@@ -40,8 +40,10 @@ export async function doWalkthrough(
40
const threadChannel = channel as PublicThreadChannel; // necessary type cast, isHelpThread does the check already
41
42
// Check for tags in the forum post
43
- if (!threadChannel.appliedTags || threadChannel.appliedTags.length === 0) {
44
- threadChannel.setAppliedTags([config.helpChannel.openedTag]);
+ const appliedTags = threadChannel.appliedTags ?? [];
+ if (!appliedTags.includes(config.helpChannel.openedTag)) {
45
+ appliedTags.push(config.helpChannel.openedTag);
46
+ threadChannel.setAppliedTags(appliedTags);
47
}
48
49
// Generate the message with the action row
0 commit comments