From e5fbddf6361e7379417feecb08f3c167f1778b75 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Mon, 22 Jul 2024 17:52:53 +0100 Subject: [PATCH] fix shoebox usage --- app/adapters/application.js | 9 ++------- app/routes/project-version/classes/class.js | 5 ++++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/app/adapters/application.js b/app/adapters/application.js index ef405bb4..2a3f95b0 100644 --- a/app/adapters/application.js +++ b/app/adapters/application.js @@ -29,13 +29,8 @@ export default class Application extends JSONAPIAdapter { return false; } - shouldBackgroundReloadRecord(store, { modelName, id }) { - let key = `${modelName}-${id}`; - let hasId = this.ids[key]; - if (!hasId) { - this.ids[key] = true; - } - return !hasId; + shouldBackgroundReloadRecord() { + return false; } constructor() { diff --git a/app/routes/project-version/classes/class.js b/app/routes/project-version/classes/class.js index db930130..c1e9f0c4 100644 --- a/app/routes/project-version/classes/class.js +++ b/app/routes/project-version/classes/class.js @@ -33,7 +33,10 @@ export default class ClassRoute extends Route.extend(ScrollTracker) { this.metaStore ); const klass = params['class']; - return this.find('class', `${project}-${projectVersion}-${klass}`); + return this.find( + 'class', + `${project}-${projectVersion}-${klass}`.toLowerCase() + ); } find(typeName, param) {