Show "dashboard" icon for excalidraw files

This commit is contained in:
Simon Cambier
2024-06-20 18:34:54 +02:00
parent 6cd777ea73
commit 074a96fcff
4 changed files with 22 additions and 11 deletions

View File

@@ -5,7 +5,7 @@ import {
getAliasesFromMetadata,
getTagsFromMetadata,
isFileCanvas,
isFileFromDataloomPlugin,
isFileFromDataloom,
isFileImage,
isFileOffice,
isFilePDF,
@@ -135,7 +135,7 @@ export class CacheManager {
}
// ** Dataloom plugin **
else if (isFileFromDataloomPlugin(path)) {
else if (isFileFromDataloom(path)) {
try {
const data = JSON.parse(await app.vault.cachedRead(file))
// data is a json object, we recursively iterate the keys