-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Schma edit #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time please merge the main branch and re-branch so the diffs look a bit more reasonable and there are no conflicts.
@@ -45,7 +45,7 @@ export class FormComponent implements OnInit { | |||
sections: [], | |||
} | |||
|
|||
onSnapshot(doc(firestore, "admin/schema"), (snapshot) => { | |||
onSnapshot(doc(firestore, "admin/schema1"), (snapshot) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this
} from "app/services/the-blue-alliance.service" | ||
import { FormControl } from "@angular/forms" | ||
|
||
interface section { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interfaces should start with a capital letter.
Also, isn't Widget defined somewhere else? and schema? and section?..
let stringSchema = JSON.parse(JSON.stringify(this.schema)) | ||
await setDoc( | ||
doc(this.firestore, "admin/schema1"), | ||
Object.assign({}, stringSchema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is all of this JSON parse stringily Object assign misery? Just set the doc to this.schema
No description provided.