Skip to content

Commit 2ea2380

Browse files
committed
Fix external method call.
1 parent 1bc3b45 commit 2ea2380

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_unicorn/static/js/unicorn.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from "./component.js";
2-
import { hasValue } from "./utils.js";
2+
import { isEmpty } from "./utils.js";
33

44
let messageUrl = "";
55
const csrfTokenHeaderName = "X-CSRFToken";
@@ -34,7 +34,7 @@ export function call(componentName, methodName) {
3434
let component;
3535

3636
Object.keys(components).forEach((id) => {
37-
if (hasValue(component)) {
37+
if (isEmpty(component)) {
3838
const _component = components[id];
3939

4040
if (_component.name === componentName) {

0 commit comments

Comments
 (0)