mirror of
https://github.com/directus/directus.git
synced 2026-02-11 07:55:00 -05:00
Fix data model edits tracking (#8567)
This commit is contained in:
@@ -142,7 +142,10 @@ export default defineComponent({
|
||||
collection
|
||||
);
|
||||
|
||||
const hasEdits = computed<boolean>(() => Object.keys(edits.value).length > 0);
|
||||
const hasEdits = computed<boolean>(() => {
|
||||
if (!edits.value.meta) return false;
|
||||
return Object.keys(edits.value.meta).length > 0;
|
||||
});
|
||||
|
||||
useShortcut('meta+s', () => {
|
||||
if (hasEdits.value) saveAndStay();
|
||||
|
||||
Reference in New Issue
Block a user