mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
corrected two instances of value !== {}
This commit is contained in:
@@ -1726,7 +1726,7 @@ export default class ExcalidrawView extends TextFileView {
|
||||
elements: excalidrawData.elements.concat(deletedElements??[]), //need to preserve deleted elements during autosave if images, links, etc. are updated
|
||||
appState: {
|
||||
...excalidrawData.appState,
|
||||
...this.excalidrawData.selectedElementIds !== {} //https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/609
|
||||
...this.excalidrawData.selectedElementIds //https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/609
|
||||
? this.excalidrawData.selectedElementIds
|
||||
: {},
|
||||
zenModeEnabled,
|
||||
@@ -2359,7 +2359,7 @@ export default class ExcalidrawView extends TextFileView {
|
||||
true
|
||||
);
|
||||
|
||||
if (images && images !== {}) {
|
||||
if (images && Object.keys(images).length >0) {
|
||||
const files: BinaryFileData[] = [];
|
||||
Object.keys(images).forEach((k) => {
|
||||
files.push({
|
||||
|
||||
Reference in New Issue
Block a user