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