Skip to content
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

Merged
merged 30 commits into from
Oct 9, 2021
Merged

Added Schma edit #5

merged 30 commits into from
Oct 9, 2021

Conversation

liorsagy
Copy link
Member

@liorsagy liorsagy commented Oct 6, 2021

No description provided.

Copy link
Member

@noamzaks noamzaks left a 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) => {
Copy link
Member

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 {
Copy link
Member

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?..

Comment on lines 161 to 164
let stringSchema = JSON.parse(JSON.stringify(this.schema))
await setDoc(
doc(this.firestore, "admin/schema1"),
Object.assign({}, stringSchema)
Copy link
Member

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

@noamzaks noamzaks merged commit 05c08d7 into MisCar:angular Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants