Skip to content

Commit

Permalink
fix shoebox usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 22, 2024
1 parent 3406f18 commit 31938d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions app/adapters/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion app/routes/project-version/classes/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Check failure on line 36 in app/routes/project-version/classes/class.js

View workflow job for this annotation

GitHub Actions / Lint files

Replace `'class',·`${project}-${projectVersion}-${klass}`.toLowerCase()` with `⏎······'class',⏎······`${project}-${projectVersion}-${klass}`.toLowerCase()⏎····`
}

find(typeName, param) {
Expand Down

0 comments on commit 31938d8

Please sign in to comment.