Skip to content

Commit 3077d05

Browse files
Comments & Logs
1 parent cb9684b commit 3077d05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/browser/saveable-service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ export class SaveableService implements FrontendApplicationContribution {
223223
return false;
224224
}
225225
const saveable = Saveable.get(widget);
226+
if (!saveable) {
227+
console.warn('Saveable.get returned undefined on a known saveable widget. This is unexpected.');
228+
}
229+
// Enter branch if saveable absent since we cannot check autosaveability more definitely.
226230
if (this.autoSave !== 'off' && (!saveable || this.shouldAutoSave(widget, saveable))) {
227231
return true;
228232
}

0 commit comments

Comments
 (0)