daily-code icon indicating copy to clipboard operation
daily-code copied to clipboard

Paytm Project particular slide not rendering and throwing error in the console.

Open Rahulsoni9321 opened this issue 1 year ago • 2 comments

Describe the bug I was going through the notes of Paytm project 2nd part (recent one) and at a Particular slide it throws an error on the screen and shows some error in the console screenshot attached below.

Screenshot 2024-04-16 003159

Rahulsoni9321 avatar Apr 15 '24 19:04 Rahulsoni9321

The error is because of no/zero content in 2nd code block hence the properties.title field is null/undefined and accessing title[0] array element throw "cannot read properties of undefined". Below fix I tried locally and working fine. Will raise PR soon or we can get rid of this empty code block. @hkirat Screenshot 2024-04-16 at 9 22 19 AM Screenshot 2024-04-16 at 9 21 49 AM image

sandeepky47 avatar Apr 16 '24 04:04 sandeepky47

Above issue will be fixed by this PR

sandeepky47 avatar Apr 16 '24 04:04 sandeepky47