mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Save default settings with workspace creation
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
fetchWorkspaceSettings,
|
||||
saveWorkspaceSettings,
|
||||
getWorkspace,
|
||||
updateLastWorkspace,
|
||||
} from '../services/api';
|
||||
import { DEFAULT_SETTINGS } from '../utils/constants';
|
||||
|
||||
@@ -61,8 +62,10 @@ export const WorkspaceProvider = ({ children }) => {
|
||||
|
||||
const switchWorkspace = useCallback(async (workspaceId) => {
|
||||
try {
|
||||
console.log(workspaceId);
|
||||
setLoading(true);
|
||||
await updateLastWorkspace(workspaceId);
|
||||
console.log('Hello');
|
||||
await loadWorkspaceData(workspaceId);
|
||||
notifications.show({
|
||||
title: 'Success',
|
||||
|
||||
Reference in New Issue
Block a user