Skip to content

Commit

Permalink
Retrieve customField name from storyCustomField
Browse files Browse the repository at this point in the history
  • Loading branch information
JensAstrup committed May 14, 2024
1 parent dec49ed commit 52f8bfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/stories/custom-fields/story-custom-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default class StoryCustomField extends BaseResource<StoryInterface> imple
return field
}

/**
* Get the name of the custom field that this story custom field is associated with.
*/

Check warning on line 40 in src/stories/custom-fields/story-custom-field.ts

View check run for this annotation

Codecov / codecov/patch

src/stories/custom-fields/story-custom-field.ts#L37-L40

Added lines #L37 - L40 were not covered by tests
get name(): Promise<string> {
return this.field.then((field) => field.name)
}
Expand Down

0 comments on commit 52f8bfb

Please sign in to comment.