From 459060db0b84fa02629b2d6393d155c6148e9b76 Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Thu, 12 May 2022 09:23:23 -0500 Subject: [PATCH] DEV: Remove string prototype extensions (#16736) Context: https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions --- .../javascripts/discourse/app/components/reviewable-item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/reviewable-item.js b/app/assets/javascripts/discourse/app/components/reviewable-item.js index 70b5f9f3d0b..4e6ee37884a 100644 --- a/app/assets/javascripts/discourse/app/components/reviewable-item.js +++ b/app/assets/javascripts/discourse/app/components/reviewable-item.js @@ -34,7 +34,7 @@ export default Component.extend({ "reviewable.target_created_by_trust_level" ) customClasses(type, lastPerformingUsername, blurEnabled, trustLevel) { - let classes = type.dasherize(); + let classes = dasherize(type); if (lastPerformingUsername) { classes = `${classes} reviewable-stale`;