mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(core): revert blocking workflow updates on interim changes (no-changelog) (#4396)
⏪ Revert "feat(core): block workflow update on interim change (#4374)"
This reverts commit e83b9bd983.
This commit is contained in:
@@ -706,7 +706,10 @@ export const emptyPackage = () => {
|
||||
// workflow
|
||||
// ----------------------------------
|
||||
|
||||
export function makeWorkflow(options?: {
|
||||
export function makeWorkflow({
|
||||
withPinData,
|
||||
withCredential,
|
||||
}: {
|
||||
withPinData: boolean;
|
||||
withCredential?: { id: string; name: string };
|
||||
}) {
|
||||
@@ -721,9 +724,9 @@ export function makeWorkflow(options?: {
|
||||
position: [740, 240],
|
||||
};
|
||||
|
||||
if (options?.withCredential) {
|
||||
if (withCredential) {
|
||||
node.credentials = {
|
||||
spotifyApi: options.withCredential,
|
||||
spotifyApi: withCredential,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -732,7 +735,7 @@ export function makeWorkflow(options?: {
|
||||
workflow.connections = {};
|
||||
workflow.nodes = [node];
|
||||
|
||||
if (options?.withPinData) {
|
||||
if (withPinData) {
|
||||
workflow.pinData = MOCK_PINDATA;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user