summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole3/frontend/src/app/service/og-common.service.ts
diff options
context:
space:
mode:
authordevega <ma.devega@globunet.com>2019-05-17 13:21:04 +0200
committerdevega <ma.devega@globunet.com>2019-05-17 13:21:04 +0200
commit4a04b450f918e47fb0758cac47b3f0581d8db859 (patch)
treefb0b5aa897eb8e4f375fa7c10adf48229900ee2c /admin/WebConsole3/frontend/src/app/service/og-common.service.ts
parent1dde16d74e66dd6699108bc17c03021e3ec96214 (diff)
parentd34b00c51df4dcc5aa88e76361b22ef7c1ff72a8 (diff)
Merge remote-tracking branch 'origin/webconsole3' into webconsole3
Diffstat (limited to 'admin/WebConsole3/frontend/src/app/service/og-common.service.ts')
-rw-r--r--admin/WebConsole3/frontend/src/app/service/og-common.service.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/admin/WebConsole3/frontend/src/app/service/og-common.service.ts b/admin/WebConsole3/frontend/src/app/service/og-common.service.ts
index b529199d..3de25304 100644
--- a/admin/WebConsole3/frontend/src/app/service/og-common.service.ts
+++ b/admin/WebConsole3/frontend/src/app/service/og-common.service.ts
@@ -198,15 +198,13 @@ export class OgCommonService {
}
saveSelection() {
- if (Object.keys(this.selectedClients).length > 0) {
- localStorage.setItem('selectedClients', JSON.stringify(this.selectedClients, function (key, value) {
- let result = value;
- if (key === 'parent' && typeof value === 'object') {
- result = value.id;
- }
- return result;
- }));
- }
+ localStorage.setItem('selectedClients', JSON.stringify(this.selectedClients, function (key, value) {
+ let result = value;
+ if (key === 'parent' && typeof value === 'object') {
+ result = value.id;
+ }
+ return result;
+ }));
}
getSelectionSize() {