mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
Disable model storage for now (#3805)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
daec3b8e17
commit
835588cfd3
@ -63,19 +63,19 @@ export default async () => {
|
||||
filterModel ? [...getPlugins(), ...(getMetadata(clientPlugin.metadata.ExtraPlugins) ?? [])] : undefined,
|
||||
{
|
||||
load: async () => {
|
||||
if (typeof localStorage !== 'undefined') {
|
||||
const dta = localStorage.getItem('stored_model_' + token) ?? null
|
||||
if (dta === null) {
|
||||
return []
|
||||
}
|
||||
return JSON.parse(dta)
|
||||
}
|
||||
// if (typeof localStorage !== 'undefined') {
|
||||
// const dta = localStorage.getItem('stored_model_' + token) ?? null
|
||||
// if (dta === null) {
|
||||
// return []
|
||||
// }
|
||||
// return JSON.parse(dta)
|
||||
// }
|
||||
return []
|
||||
},
|
||||
store: async (txes) => {
|
||||
if (typeof localStorage !== 'undefined') {
|
||||
localStorage.setItem('stored_model_' + token, JSON.stringify(txes))
|
||||
}
|
||||
// if (typeof localStorage !== 'undefined') {
|
||||
// localStorage.setItem('stored_model_' + token, JSON.stringify(txes))
|
||||
// }
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user