From 31938d88ba09a6cc28c85296746f92bb6f9b0a88 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 | 2 +- 2 files changed, 3 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..267f86f7 100644 --- a/app/routes/project-version/classes/class.js +++ b/app/routes/project-version/classes/class.js @@ -33,7 +33,7 @@ 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) {