open-nomad/ui/app/helpers/async-escape-hatch.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
272 B
JavaScript
Raw Normal View History

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Helper from '@ember/component/helper';
export function asyncEscapeHatch([model, relationship]) {
return model[relationship].content;
}
export default Helper.helper(asyncEscapeHatch);