Fix for resolution note switch (#5003)
https://raintank-corp.slack.com/archives/C07HMCM59TK/p1725915153053969
This commit is contained in:
parent
f25314df1d
commit
c0a84291e6
1 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,8 @@ import { useStore } from 'state/useStore';
|
|||
export const MainSettings = observer(() => {
|
||||
const styles = useStyles2(getStyles);
|
||||
const {
|
||||
organizationStore: { currentOrganization, saveCurrentOrganization },
|
||||
organizationStore,
|
||||
organizationStore: { currentOrganization },
|
||||
pluginStore: { apiUrlFromStatus },
|
||||
} = useStore();
|
||||
|
||||
|
|
@ -41,7 +42,7 @@ export const MainSettings = observer(() => {
|
|||
<Switch
|
||||
value={currentOrganization?.is_resolution_note_required}
|
||||
onChange={(event) => {
|
||||
saveCurrentOrganization({
|
||||
organizationStore.saveCurrentOrganization({
|
||||
is_resolution_note_required: event.currentTarget.checked,
|
||||
});
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue