Skip to content

Commit 5005941

Browse files
committed
fixes for js_pipeline
Signed-off-by: Andy Miller <rhuk@mac.com>
1 parent aef36e8 commit 5005941

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

app/fields/file.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,3 +357,12 @@ export let Instances = (() => {
357357

358358
return instances;
359359
})();
360+
361+
// Expose addNode function to global scope for XHR reinitialization and pipeline compatibility
362+
if (typeof window.GravForm === 'undefined') {
363+
window.GravForm = {};
364+
}
365+
window.GravForm.FilesField = {
366+
addNode,
367+
instances: Instances
368+
};

0 commit comments

Comments
 (0)