mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Fix action
This commit is contained in:
@@ -9,7 +9,7 @@ import { SHA1 } from 'crypto-js'
|
||||
export class PublicationListService {
|
||||
|
||||
// main data
|
||||
private _document: Publication[] = []
|
||||
private _document = {}
|
||||
// local storage keyName
|
||||
private keyName: string;
|
||||
|
||||
@@ -18,8 +18,8 @@ export class PublicationListService {
|
||||
this.keyName = (SHA1(this.constructor.name+ 'view-publication-list/local')).toString()
|
||||
|
||||
setTimeout(()=>{
|
||||
let restore = localstoreService.get(this.keyName, [])
|
||||
this._document = restore.document
|
||||
let restore = localstoreService.get(this.keyName, {})
|
||||
this._document = restore.document || {}
|
||||
}, 10)
|
||||
|
||||
}
|
||||
@@ -28,7 +28,7 @@ export class PublicationListService {
|
||||
return this._document
|
||||
}
|
||||
|
||||
getDocument(folderId: string) {
|
||||
getDocument(folderId) {
|
||||
return this._document[folderId]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user