I want to replace content synchronous each layer.
I tried to this code
async function replaceContentsLoop(image, layerList) {
  try {
    await core.executeAsModal(() => {
      const result = action.batchPlay(
        layerList.map((layer) => {
          return {
            _obj: 'placedLayerReplaceContents',
            null: {
              _path: fs.createSessionToken(image),
              _kind: 'local',
            },
            layerID: layer._id,
            _options: {
              dialogOptions: 'dontDisplay',
            },
          };
        }),
        {
          synchronousExecution: true,
        },
      );
      console.log(result);
    });
  } catch (e) {
    console.log('replaceContents', e);
  }
}
And actionDescripton array is this
But its working at same layer
how can i fix it ??


