From d643cf742e4a46423dd07bb72d532e91346e3855 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Tue, 6 Oct 2020 20:58:52 -0500 Subject: [PATCH] Import getURL to fix deprecation warnings (#52) --- assets/javascripts/discourse/components/query-result.js.es6 | 1 + assets/javascripts/discourse/models/query.js.es6 | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/javascripts/discourse/components/query-result.js.es6 b/assets/javascripts/discourse/components/query-result.js.es6 index c8dc39d..ef85563 100644 --- a/assets/javascripts/discourse/components/query-result.js.es6 +++ b/assets/javascripts/discourse/components/query-result.js.es6 @@ -3,6 +3,7 @@ import { ajax } from "discourse/lib/ajax"; import getURL from "discourse-common/lib/get-url"; import Badge from "discourse/models/badge"; import { default as computed } from "discourse-common/utils/decorators"; +import getURL from "discourse-common/lib/get-url"; function randomIdShort() { return "xxxxxxxx".replace(/[xy]/g, () => { diff --git a/assets/javascripts/discourse/models/query.js.es6 b/assets/javascripts/discourse/models/query.js.es6 index 7380146..29eb66b 100644 --- a/assets/javascripts/discourse/models/query.js.es6 +++ b/assets/javascripts/discourse/models/query.js.es6 @@ -5,6 +5,7 @@ import { } from "discourse-common/utils/decorators"; import getURL from "discourse-common/lib/get-url"; import RestModel from "discourse/models/rest"; +import getURL from "discourse-common/lib/get-url"; const Query = RestModel.extend({ dirty: false,