@cdc/filtered-text 4.25.3-6 → 4.25.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/filtered-text",
3
- "version": "4.25.3-6",
3
+ "version": "4.25.3",
4
4
  "description": "React component for adding filtered text on dashboards.",
5
5
  "moduleName": "CdcFilteredText",
6
6
  "main": "dist/cdcfilteredtext",
@@ -26,7 +26,7 @@
26
26
  "license": "Apache-2.0",
27
27
  "homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
28
28
  "dependencies": {
29
- "@cdc/core": "^4.25.3-6",
29
+ "@cdc/core": "^4.25.3",
30
30
  "html-react-parser": "^3.0.8",
31
31
  "papaparse": "^5.3.2"
32
32
  },
@@ -34,5 +34,5 @@
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0"
36
36
  },
37
- "gitHead": "d83d8555c1500ff0cad9d2c5c3486324afa15ec6"
37
+ "gitHead": "b09566f5a7d57c8d0109e5f407257729d6b36846"
38
38
  }
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect, memo, useContext } from 'react'
2
-
2
+ import _ from 'lodash'
3
3
  import ConfigContext from '../ConfigContext'
4
4
 
5
5
  import ErrorBoundary from '@cdc/core/components/ErrorBoundary'
@@ -147,7 +147,7 @@ const EditorPanel = memo(props => {
147
147
  )
148
148
  }
149
149
  const convertStateToConfig = () => {
150
- let strippedState = JSON.parse(JSON.stringify(config))
150
+ let strippedState = _.cloneDeep(config)
151
151
  delete strippedState.newViz
152
152
  delete strippedState.runtime
153
153