Skip to content

Commit 3509c99

Browse files
fix(link-to): add id to "inactive loading state" warning
Without an ID, this triggers an assertion with the message "When calling warn you must provide an options hash as the third parameter. options should include an id property."
1 parent 0e80c40 commit 3509c99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ember-glimmer/lib/components/link-to.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,9 @@ const LinkComponent = EmberComponent.extend({
628628

629629
if (get(this, 'loading')) {
630630
// tslint:disable-next-line:max-line-length
631-
warn('This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.', false);
631+
warn('This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.', false, {
632+
id: 'ember-glimmer.link-to.inactive-loading-state'
633+
});
632634
return false;
633635
}
634636

0 commit comments

Comments
 (0)