# Javascript columns are broken

**URL:** <https://community.glideapps.com/t/javascript-columns-are-broken/56407>\
**Category:** Report a Bug\
**Created:** [January 6, 2023, 11:30am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407 "2023-01-06T11:30:48Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 11:30am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/1 "2023-01-06T11:30:48Z")

</div>

**My App/Pages support link:**  
[https://go.glideapps.com/support/1f7b410e-8983-4a37-82bb-ea94db37f7fd](https://go.glideapps.com/support/1f7b410e-8983-4a37-82bb-ea94db37f7fd)

**Describe the bug:**

- My Javascript columns aren’t loading. They have a loader in the data column and the app crashes without them.

**Expected behavior:**

- The values should be calculated like before.

**How to replicate:**

- Any screen where a javascript column is used crashes immediately.

 ![Screenshot 2023-01-06 at 12.18.03](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/0/20e94a81edfb577074639c2c559fab0e67834ef1.jpeg)  
 ![Screenshot 2023-01-06 at 12.29.24](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/b/3b3fd60130e94843f2cba8bb4239ae8df67736e7.jpeg)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 6, 2023, 11:33am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/2 "2023-01-06T11:33:36Z")

</div>

Side note: JavaScript is complete overkill for the use case shown in your screenshot. A simple if-then-else column would do the job.

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 11:37am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/3 "2023-01-06T11:37:16Z")

</div>

I know, I showed the easiest ones I have but there are more complicated ones in the app, the use case here used to be different and I haven’t bothered changing it to a if else yet.  
These just showcase that easy examples don’t work, and it’s not a while loop in the code or something.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 6, 2023, 11:39am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/4 "2023-01-06T11:39:35Z")

</div>

Okay.  
I’m away from my computer at the moment, so I can’t check any of mine. But I will as soon as I can.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 6, 2023, 11:51am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/5 "2023-01-06T11:51:19Z")

</div>

I just checked a few of mine (including some relatively complex ones that process thousands of rows) and I can’t see any problems.

I wonder if there is something else in your App that is causing issues?  
Is it only JavaScript columns that are spinning?  
What other computed columns do you have in that table, and how many rows are there?  
What happens if you create a single row table and test a simple JavaScript column in that table?

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 11:52am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/6 "2023-01-06T11:52:18Z")

</div>

I’ll do that right away

FYI I’m getting a huge amount of JS errors here:

 ![Screenshot 2023-01-06 at 12.51.24](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/b/6bf4666fe1f0e23c6a5bccead5019d83de967db7.jpeg)  
This is just devtools on the data page.

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 11:54am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/7 "2023-01-06T11:54:54Z")

</div>

![Screenshot 2023-01-06 at 12.53.22](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/c/bc1ba9e74537eea2acf4cc763894ce523bd0965f.png)  
Nope, 1 row. Keeps spinning.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 6, 2023, 11:56am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/8 "2023-01-06T11:56:24Z")

</div>

Given those console errors (I see warnings, but no errors), it might be that you have a dirty cache.  
I’d try emptying your browser cache and probably delete any Glide related cookies while you are at it.  
That might do the trick.

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 11:59am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/9 "2023-01-06T11:59:32Z")

</div>

You were right, all my users have to do the same probably, they are reporting the same issue.  
The data is being processed now, and deploying didn’t automatically fix the issue on my phone.  
Clearing cookies on my phone fixed it there.  
Time to send some emails 🙂

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 6, 2023, 12:00pm UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/10 "2023-01-06T12:00:39Z")

</div>

Excellent! 👍

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 12:01pm UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/11 "2023-01-06T12:01:10Z")

</div>

Nevermind, after 1 page refresh the issue is back ☹

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 6, 2023, 12:04pm UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/12 "2023-01-06T12:04:42Z")

</div>

Ouch ☹

hmm, my guess would be that some recent change that you’ve made might have triggered something nasty. Were you working in the builder when this started? And if yes, do you recall what you might have added or changed?

Even if that’s the case, it would probably still be considered a bug. Which Plan are you on?

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 12:04pm UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/13 "2023-01-06T12:04:55Z")

</div>

And now it looks to be fully gone.  
A few refreshes and cookie resets did the trick it looks like.

---

<div class="post-metadata">

**Author:** ![Rentabear](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rentabear/32/46417_2.png) [@Rentabear](https://community.glideapps.com/u/Rentabear)\
**Post date:** [January 6, 2023, 12:05pm UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/14 "2023-01-06T12:05:30Z")

</div>

No, I didn’t change anything in the last 2 weeks. It just stopped working yesterday.

---

<div class="post-metadata">

**Author:** ![gp9293](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gp9293/32/16743_2.png) [@gp9293](https://community.glideapps.com/u/gp9293)\
**Post date:** [April 18, 2023, 7:18pm UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/15 "2023-04-18T19:18:30Z")

</div>

Sam problem. Javascript just stopped working and will not fill columns with data being extracted from a fetchJSON column.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 19, 2023, 12:01am UTC](https://community.glideapps.com/t/javascript-columns-are-broken/56407/16 "2023-04-19T00:01:16Z")

</div>

So it’s the JavaScript column that’s not working, and the input is from a fetchJSON column? Does it return any error on the column view?
