Skip to content

Commit

Permalink
FIX: categories need to be initialized so that CategorySelector defin…
Browse files Browse the repository at this point in the history
…es the categoryId list

angusmcleod/discourse@dcd81d5
  • Loading branch information
angusmcleod committed Dec 8, 2023
1 parent e3627e6 commit 0229043
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { makeArray } from "discourse-common/lib/helpers";
export default CategorySelector.extend({
classNames: ["category-selector", "wizard-category-selector"],
content: computed(
"categories.[]",
"categoryIds.[]",
"blacklist.[]",
"whitelist.[]",
function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Category from "discourse/models/category";
import Component from "@ember/component";

export default Component.extend({
categories: [],

didInsertElement() {
const property = this.field.property || "id";
const value = this.field.value;
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true
# name: discourse-custom-wizard
# about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more.
# version: 2.5.3
# version: 2.5.4
# authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever, Juan Marcos Gutierrez Ramos
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact_emails: [email protected]
Expand Down

0 comments on commit 0229043

Please sign in to comment.