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

fix build undefined in the console #2046

Closed
wants to merge 1 commit into from

Conversation

Omar-Nabil
Copy link
Contributor

@Omar-Nabil Omar-Nabil commented Mar 21, 2024

Description

The optional chaining (?.) ensures that if any of the properties (data, git, build, or version) in the chain is null or undefined, the expression short-circuits and returns undefined, instead of throwing an error. If the result of the split operation is not null or undefined, it assigns that value to buildVersion.
If the result is null or undefined, it returns an empty array ([]) due to the nullish coalescing (??) operator.

Screenshots, if any

the error
aaaa

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • If you have multiple commits please combine them into one commit by squashing them.

  • Read and understood the contribution guidelines at web-app/.github/CONTRIBUTING.md.

@PC-11-00
Copy link
Collaborator

Where are you getting this issue?

@Omar-Nabil
Copy link
Contributor Author

@PC-11-00 in the console

@PC-11-00
Copy link
Collaborator

PC-11-00 commented Mar 21, 2024

Means on which page because I am not receiving this error?

@Omar-Nabil
Copy link
Contributor Author

@PC-11-00 in home page but I think it is in all pages that is using footer component

@PC-11-00
Copy link
Collaborator

@PC-11-00
Copy link
Collaborator

Which server instance are you using?

@Omar-Nabil
Copy link
Contributor Author

Omar-Nabil commented Mar 21, 2024

@PC-11-00 i am running this file
nnnn

@Omar-Nabil
Copy link
Contributor Author

bbbb

Copy link

This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.

@github-actions github-actions bot added the Stale label Apr 21, 2024
@Omar-Nabil Omar-Nabil closed this by deleting the head repository May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants