Skip to content

Commit

Permalink
fix(editor): Ensure execution data overrides pinned data when copying…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored Dec 20, 2023
1 parent 4b86926 commit 1d1cb0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/editor-ui/src/components/RunDataJsonActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ export default defineComponent({
getJsonValue(): string {
let selectedValue = jp.query(this.jsonData, `$${this.normalisedJsonPath}`)[0];
if (this.noSelection) {
if (this.hasPinData) {
const inExecutionsFrame =
window !== window.parent && window.parent.location.pathname.includes('/executions');
if (this.hasPinData && !inExecutionsFrame) {
selectedValue = clearJsonKey(this.pinData as object);
} else {
selectedValue = executionDataToJson(
Expand Down

0 comments on commit 1d1cb0d

Please sign in to comment.