Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dartungar committed Mar 9, 2024
1 parent 1d24b40 commit 860048c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/UI/noteset/noteSetEditModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class NoteSetEditModal extends Modal {

async save() {
this._plugin.settings.noteSets.forEach((noteSet, index) => {
if (noteSet.id == this._noteSet.id) {
if (noteSet.id === this._noteSet.id) {
this._plugin.settings.noteSets[index] = this._noteSet;
}
});
Expand Down
1 change: 0 additions & 1 deletion src/noteSet/noteSetService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class NoteSetService {
constructor(private _app: App, private _plugin: SimpleNoteReviewPlugin) {}

public getNoteSet(noteSetId: string): INoteSet {
console.log("notesetId:", noteSetId, "notesets:", this._plugin.settings.noteSets)
const notesets = this._plugin.settings.noteSets.filter(x => x.id === noteSetId);
if (notesets.length === 0) {
throw new Error(`Noteset not found`);
Expand Down
1 change: 1 addition & 0 deletions src/notes/fileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class FileService {
}

private async getReviewFrequency(file: TFile): Promise<ReviewFrequency | null> {

const frequencyValue = await this._dataviewService.getMetadataFieldValue(
file.path, this._plugin.settings.reviewFrequencyFieldName);

Expand Down
2 changes: 1 addition & 1 deletion src/queues/reviewService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class ReviewService {
const pages = (
await this._dataviewService.getNoteSetFiles(noteSet)
).filter((x) => x[freqFieldname] !== ReviewFrequency.ignore);
let sorted: DataArray<Record<string, any>>;
let sorted: DataArray<Record<string, TFile>>;

if (this._plugin.settings.useReviewFrequency) {
sorted = pages.sort(
Expand Down

0 comments on commit 860048c

Please sign in to comment.