fix(core): revert blocking workflow update on interim change (#4437)

 Revert "feat(core): block workflow update on interim change (#4397)"

This reverts commit cddd012a2f.
This commit is contained in:
Iván Ovejero
2022-10-25 13:45:47 +02:00
committed by GitHub
parent b296fb06f3
commit 07adc2d2dc
11 changed files with 10 additions and 208 deletions

View File

@@ -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;
}