fixing bugs
This commit is contained in:
@@ -176,6 +176,7 @@ export default function CreateConversation() {
|
||||
});
|
||||
} catch (error) {
|
||||
toast.error("Problem in creating conversation");
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
setIsSubmitting(false);
|
||||
|
||||
@@ -11,7 +11,11 @@
|
||||
// Import the functions you need from the SDKs you need
|
||||
import * as firebase from "firebase/app";
|
||||
// import { getAnalytics } from "firebase/analytics";
|
||||
import { getFirestore, enableIndexedDbPersistence } from "firebase/firestore";
|
||||
import {
|
||||
getFirestore,
|
||||
enableIndexedDbPersistence,
|
||||
initializeFirestore,
|
||||
} from "firebase/firestore";
|
||||
import {
|
||||
browserSessionPersistence,
|
||||
getAuth,
|
||||
@@ -39,6 +43,10 @@ console.log("initialized firebase");
|
||||
|
||||
// const analytics = getAnalytics(app);
|
||||
|
||||
initializeFirestore(app, {
|
||||
ignoreUndefinedProperties: true,
|
||||
});
|
||||
|
||||
// Initialize firestore persistence for data caching
|
||||
export const firestoreDb = getFirestore(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user