question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

computed value is not an empty array when fields are undefined

See original GitHub issue

hi, ran into an issue today when attempting to use del()

I have an array for a field

let fields = [
    'argh',
    'argh[]',
]

if i give argh the value [‘a’, ‘b’, ‘c’] and then attempt to do form.$(argh).del(1) the new value will be ['b', 'c'] (1-based index) instead of ['a', 'c'] (0-based index)

is this intentional? if so why?

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
w-commented, Dec 26, 2016

alrites. i’ll test further once you’ve got a fix. thanks again for responsiveness.

0reactions
foxhound87commented, Feb 18, 2017

The handling of arrays is improved in version 1.19

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - VueJS: variable is undefined inside computed only
The weird thing is that address variable is successfully used in other parts of my component. My vue file below: <template lang="pug"> b-field( ......
Read more >
When would a computed() value be undefined? - Vue Forum
This systematically returns an empty Array (or an undefined without the unref ). This is despite the fact that possibleTags are correctly ...
Read more >
Check if an array is empty or not in JavaScript - GeeksforGeeks
Method 2: Checking the type and length of the array: The array can be checked if it exists by checking if the type...
Read more >
useForm - setValue - React Hook Form
The value for the field. This argument is required and can not be undefined . options, shouldValidate, boolean. Whether to compute if your...
Read more >
Determine whether array is empty - MATLAB isempty
An array containing missing values, such as NaN or <undefined> , is not necessarily empty. Create a categorical vector with missing values.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found