Skip to content

Commit

Permalink
Fix pattern draws in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
typpo committed May 26, 2022
1 parent b990596 commit 778b96e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dist/Chart.bundle.js
Expand Up @@ -3139,6 +3139,9 @@ var helpers_options = {
}
if (index !== undefined && helpers_core.isArray(value)) {
value = value[index];
if (typeof value === 'function') {
value = value();
}
cacheable = false;
}
if (value !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/Chart.bundle.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/Chart.js
Expand Up @@ -3135,6 +3135,9 @@ var helpers_options = {
}
if (index !== undefined && helpers_core.isArray(value)) {
value = value[index];
if (typeof value === 'function') {
value = value();
}
cacheable = false;
}
if (value !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion dist/Chart.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/helpers/helpers.options.js
Expand Up @@ -134,6 +134,9 @@ module.exports = {
}
if (index !== undefined && helpers.isArray(value)) {
value = value[index];
if (typeof value === 'function') {
value = value();
}
cacheable = false;
}
if (value !== undefined) {
Expand Down

0 comments on commit 778b96e

Please sign in to comment.