using chats instead of notes for the chat
This commit is contained in:
parent
9ec1956687
commit
cf45fcb98a
9 changed files with 201 additions and 284 deletions
|
|
@ -64,6 +64,7 @@ export default function UserWrapper(props: Props) {
|
|||
let user_id = or(useAuth.user?.sub, "")
|
||||
|
||||
const loadUser = useCallback(() => {
|
||||
if (!userAPI.getUserWithTeam) return;
|
||||
if (hasFetched.current) return;
|
||||
setLoading(true)
|
||||
userAPI.getUserWithTeam(user_id).then(resp => {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,16 @@ import { createRoot } from 'react-dom/client'
|
|||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
// I don't consider providing a disabled button to a Tooltip an error.
|
||||
// console.error = (message) => {
|
||||
// if (message.includes('You are providing a disabled `button` child to the Tooltip component.')) {
|
||||
// return; // Suppress specific warning
|
||||
// }
|
||||
// console.error(message); // Other warnings still show
|
||||
// console.info(message, "error"); // Other warnings still show
|
||||
|
||||
// };
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue