initial migration to TS
This commit is contained in:
10
frontend/src/runtimeValuePersistence.ts
Normal file
10
frontend/src/runtimeValuePersistence.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export function sanitizeRuntimeValuesForPersistence(className: string | undefined, runtimeValues: Record<string, unknown> | undefined): Record<string, unknown> {
|
||||
if (!runtimeValues || typeof runtimeValues !== 'object' || Array.isArray(runtimeValues)) {
|
||||
return {};
|
||||
}
|
||||
|
||||
if (className === 'View3D') {
|
||||
return {};
|
||||
}
|
||||
return { ...runtimeValues };
|
||||
}
|
||||
Reference in New Issue
Block a user