Skip to content

Commit

Permalink
MWPW-136232 Localize faas destination url when complete (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganthecoder authored Oct 2, 2023
1 parent b60bead commit 4acd182
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/blocks/faas/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ export const initFaas = (config, targetEl) => {
if (state.complete) {
if (state.js) {
Object.keys(state.js).forEach((key) => {
state[key] = state.js[key];
if (key === 'd') {
state[key] = localizeLink(state.js[key]);
} else {
state[key] = state.js[key];
}
});
delete state.js;
}
Expand Down

0 comments on commit 4acd182

Please sign in to comment.