pgAdmin 4 commit: Fix "number.toFixed is not function" JS error.
В списке pgadmin-hackers по дате отправления:
| От | Dave Page |
|---|---|
| Тема | pgAdmin 4 commit: Fix "number.toFixed is not function" JS error. |
| Дата | |
| Msg-id | E1bG361-0007sx-RF@gothos.postgresql.org обсуждение исходный текст |
| Список | pgadmin-hackers |
Fix "number.toFixed is not function" JS error. Issue: We got the following error in console log "number.toFixed is not function" Steps to reproduce: 1) Click on statistics tab. 1) Select any database node. 2) then select Databases collection node. 3) The above error will appear into console. Reason: I discussed the issue with @Murtaza and here we are explicitly converting values at server side to string as JSON do not directly support NaN & Infinity values. Because of which NumberFormatter receives values of type string and breaks. Solution: Overrides the NumberFormatter to support NaN & Infinity values. and we need to parse the values again in float at client side. Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=09569a23bd7f4d91c2789c1c0c5e980959f83dbd Author: Surinder Kumar <surinder.kumar@enterprisedb.com> Modified Files -------------- web/pgadmin/static/js/backgrid/backgrid.pgadmin.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
В списке pgadmin-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера