diff --git a/backend/src/utils/resourceUtils.ts b/backend/src/utils/resourceUtils.ts index cea452fbd0..ee5fcdb77f 100644 --- a/backend/src/utils/resourceUtils.ts +++ b/backend/src/utils/resourceUtils.ts @@ -796,8 +796,14 @@ export const migrateTemplateDisablement = async ( undefined, options, ) - .then((response) => { - return response.body as DashboardConfig; + .then(() => { + return { + ...dashboardConfig, + spec: { + ...dashboardConfig.spec, + templateDisablement: templatesDisabled, + }, + }; }); } else { return dashboardConfig;