Skip to content

Commit

Permalink
chore: fix localeDate for jeol format (#3215)
Browse files Browse the repository at this point in the history
* chore: fix localeDate for jeol format

* chore: fix workspace spectraColors default values

---------

Co-authored-by: hamed musallam <[email protected]>
Co-authored-by: hamed-musallam <[email protected]>
  • Loading branch information
3 people committed Sep 11, 2024
1 parent 4911a28 commit 2f8b0f2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"ml-tree-similarity": "^2.2.0",
"multiplet-analysis": "^2.1.2",
"nmr-correlation": "^2.3.3",
"nmr-load-save": "^0.37.1",
"nmr-load-save": "^0.38.0",
"nmr-processing": "^12.12.1",
"nmredata": "^0.9.11",
"numeral": "^2.0.6",
Expand Down
6 changes: 5 additions & 1 deletion src/component/reducer/actions/LoadActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ function setData(draft: Draft<State>, input: InputProps) {
const {
nmriumState: { data, view },
parseMetaFileResult = null,
spectraColors = { oneDimension: [], twoDimensions: [] },
spectraColors = {
oneDimension: [],
twoDimensions: [],
highlightColor: '#ffd700',
},
} = input || {
nmriumState: { data: { spectra: [], molecules: [], correlations: {} } },
multipleAnalysis: {},
Expand Down
1 change: 1 addition & 0 deletions src/component/workspaces/workspaceDefaultProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export const workspaceDefaultProperties: Required<WorkspacePreferences> = {
},
},
spectraColors: {
highlightColor: '#ffd700',
oneDimension: [],
twoDimensions: [
{
Expand Down

0 comments on commit 2f8b0f2

Please sign in to comment.