Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pin data enter edit mode #3729

Merged
merged 5 commits into from
Jul 18, 2022
Merged

Conversation

alexgrozav
Copy link
Member

No description provided.

@alexgrozav alexgrozav requested a review from ivov July 18, 2022 09:32
@@ -362,7 +362,7 @@ import {
INodeExecutionData,
INodeTypeDescription,
IRunData,
IRunExecutionData,
IRunExecutionData, PinData,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
IRunExecutionData, PinData,
IRunExecutionData,
PinData,

@@ -727,8 +727,9 @@ export default mixins(
localStorage.setItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, 'true');
},
enterEditMode({ origin }: EnterEditModeArgs) {
const data = this.rawInputData && this.rawInputData.length > 0
? this.convertToJson(this.rawInputData)
const inputData = this.pinData ? this.pinData as PinData : this.convertToJson(this.rawInputData);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as PinData → We should type this properly in the mixin.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jul 18, 2022
@alexgrozav alexgrozav merged commit 7083829 into data-pinning-2 Jul 18, 2022
@alexgrozav alexgrozav deleted the fix-pin-data-enter-edit-mode branch July 18, 2022 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants