A platform for community discussion. Free, open, simple.
FIX: Allow reviewable-item components to be template-only (#19257)
David Taylor6969e9da7e98
diff --git a/app/assets/javascripts/discourse/app/components/reviewable-item.js b/app/assets/javascripts/discourse/app/components/reviewable-item.jsindex 10cae579f68..4a3ab6b9d7f 100644--- a/app/assets/javascripts/discourse/app/components/reviewable-item.js+++ b/app/assets/javascripts/discourse/app/components/reviewable-item.js@@ -107,9 +107,10 @@ export default Component.extend({}const dasherized = dasherize(type);- const componentExists = getOwner(this).hasRegistration(- `component:${dasherized}`- );+ const owner = getOwner(this);+ const componentExists =+ owner.hasRegistration(`component:${dasherized}`) ||+ owner.hasRegistration(`template:components/${dasherized}`);_components[type] = componentExists ? dasherized : null;return _components[type];},