mirror of
https://github.com/umami-software/umami.git
synced 2026-02-23 22:15:35 +01:00
Renamed query hooks. Fixed conversion bugs.
This commit is contained in:
parent
adca3c36d0
commit
7886c3f393
110 changed files with 423 additions and 489 deletions
|
|
@ -3,7 +3,7 @@ import { create } from 'zustand';
|
|||
const store = create(() => ({}));
|
||||
|
||||
const useGlobalState = (key: string, value?: any) => {
|
||||
if (value !== undefined && !store.getState()[key]) {
|
||||
if (value !== undefined && store.getState()[key] === undefined) {
|
||||
store.setState({ [key]: value });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue