Skip to content

Commit

Permalink
fix .md removal
Browse files Browse the repository at this point in the history
  • Loading branch information
connorpark24 committed Jun 30, 2024
1 parent 08d4f3f commit a3085c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MyModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class MyModal extends Modal {
contentEl.createEl("h2", { text: "Daily Refresher" });

this.summaries?.forEach((note) => {
const noteName = note.name.replace(/\.md$/, ""); // FIX THIS
const noteName = note.name.replace(/\.md$/, "");
contentEl.createEl("h3", { text: noteName });
contentEl.createEl("p", { text: note.summary });
});
Expand Down
3 changes: 1 addition & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface MyPluginSettings {
}

const DEFAULT_SETTINGS: MyPluginSettings = {
folderPath: "School",
folderPath: "",
apiKey: "",
};

Expand Down Expand Up @@ -38,7 +38,6 @@ export default class MyPlugin extends Plugin {
onunload() {}

async getNotesFromFolder(folderPath: string): Promise<TFile[]> {
console.log("ehll0");
const folder = this.app.vault.getAbstractFileByPath(folderPath);
const notes: TFile[] = [];

Expand Down

0 comments on commit a3085c0

Please sign in to comment.