fix error with promise handling in direct painting
fix error with promise handling in direct painting

root-project/jsroot,root-project/jsroot,bellenot/jsroot,linev/jsroot,linev/jsroot,bellenot/jsroot,bellenot/jsroot