mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-17 13:54:11 +00: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,
|
filterModel ? [...getPlugins(), ...(getMetadata(clientPlugin.metadata.ExtraPlugins) ?? [])] : undefined,
|
||||||
{
|
{
|
||||||
load: async () => {
|
load: async () => {
|
||||||
if (typeof localStorage !== 'undefined') {
|
// if (typeof localStorage !== 'undefined') {
|
||||||
const dta = localStorage.getItem('stored_model_' + token) ?? null
|
// const dta = localStorage.getItem('stored_model_' + token) ?? null
|
||||||
if (dta === null) {
|
// if (dta === null) {
|
||||||
return []
|
// return []
|
||||||
}
|
// }
|
||||||
return JSON.parse(dta)
|
// return JSON.parse(dta)
|
||||||
}
|
// }
|
||||||
return []
|
return []
|
||||||
},
|
},
|
||||||
store: async (txes) => {
|
store: async (txes) => {
|
||||||
if (typeof localStorage !== 'undefined') {
|
// if (typeof localStorage !== 'undefined') {
|
||||||
localStorage.setItem('stored_model_' + token, JSON.stringify(txes))
|
// localStorage.setItem('stored_model_' + token, JSON.stringify(txes))
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user