We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc3b45 commit 2ea2380Copy full SHA for 2ea2380
django_unicorn/static/js/unicorn.js
@@ -1,5 +1,5 @@
1
import { Component } from "./component.js";
2
-import { hasValue } from "./utils.js";
+import { isEmpty } from "./utils.js";
3
4
let messageUrl = "";
5
const csrfTokenHeaderName = "X-CSRFToken";
@@ -34,7 +34,7 @@ export function call(componentName, methodName) {
34
let component;
35
36
Object.keys(components).forEach((id) => {
37
- if (hasValue(component)) {
+ if (isEmpty(component)) {
38
const _component = components[id];
39
40
if (_component.name === componentName) {
0 commit comments