diff options
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.ts | 16 |
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() { |