v1.6.2/api fix, admin dashboard deploy, scroller
This commit is contained in:
+3
-1
@@ -1,7 +1,9 @@
|
||||
import firebase from "firebase/app";
|
||||
import "firebase/auth";
|
||||
|
||||
const API = "http://localhost:5000/watch-party-crx/us-central1/admin";
|
||||
const API = window.location.href.includes("localhost")
|
||||
? "http://localhost:5000/watch-party-crx/us-central1/admin"
|
||||
: "https://us-central1-watch-party-crx.cloudfunctions.net/admin";
|
||||
|
||||
const fetcher = async ({ endpoint, method, bodyData }) => {
|
||||
const idToken = await firebase.auth().currentUser.getIdToken();
|
||||
|
||||
@@ -336,7 +336,13 @@ export default class Dashboard extends Component {
|
||||
});
|
||||
this.setState({
|
||||
refreshing: false,
|
||||
newMessage: emptyMessage,
|
||||
newMessage: {
|
||||
type: "",
|
||||
text: "",
|
||||
uid: "<system>",
|
||||
name: "",
|
||||
endpoint: "",
|
||||
},
|
||||
messageModel: false,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user