mirror of
https://github.com/directus/directus.git
synced 2026-02-02 17:45:07 -05:00
Don't hit the API if there aren't any staged changes
This commit is contained in:
@@ -257,6 +257,11 @@ export default defineComponent({
|
||||
async function saveChanges() {
|
||||
if (!currentDashboard.value) return;
|
||||
|
||||
if (stagedPanels.value.length === 0) {
|
||||
editMode.value = false;
|
||||
return;
|
||||
}
|
||||
|
||||
saving.value = true;
|
||||
|
||||
const currentIDs = currentDashboard.value.panels.map((panel) => panel.id);
|
||||
|
||||
Reference in New Issue
Block a user