Removed defaults properties from migrations.

This commit is contained in:
Alexander Zobnin
2016-03-30 09:58:21 +03:00
parent 7f75abb2d3
commit 38f4870e28
2 changed files with 1 additions and 2 deletions

View File

@@ -25,8 +25,6 @@ export function migrateFrom2To3version(target) {
target.application.isRegex = target.application.name === "*";
target.item.filter = target.item.name === "All" ? convertToRegex(target.itemFilter) : target.item.name;
target.item.isRegex = target.item.name === "All";
target.functions = [];
target.refId = target.refId ? target.refId : "A";
return target;
}

View File

@@ -53,6 +53,7 @@ export class ZabbixQueryController extends QueryCtrl {
application: { filter: "" },
item: { filter: "" },
functions: [],
refId: "A"
};
_.defaults(target, targetDefaults);