Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 20, 2025
1 parent c76ea33 commit dff8aac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,7 @@ export function useLocalStorage<T>(key: string, initialValue: T) {
const setValue = (value: T | ((val: T) => T)) => {
try {
const valueToStore =
// eslint-disable-next-line unicorn/no-instanceof-builtins
value instanceof Function ? value(storedValue) : value
setStoredValue(valueToStore)
if (typeof window !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-jbrowse/src/JBrowse1Connection/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function structuredClone(src: any): any {
}
if (src instanceof Date) {
// Date
return new Date(src.getTime()) // Date
return new Date(src) // Date
}
if (src instanceof RegExp) {
// RegExp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConfigurationSchema } from '@jbrowse/core/configuration'

import { default as divSequenceRendererConfigSchema } from '../DivSequenceRenderer/configSchema'
import divSequenceRendererConfigSchema from '../DivSequenceRenderer/configSchema'

/**
* #config LinearReferenceSequenceDisplay
Expand Down

0 comments on commit dff8aac

Please sign in to comment.