function commit() {
  if (!session.dataset) {
    // Do nothing when there is no Dataset; e.g. when viewing reactions by ID.
    return;
  }
  const reaction = unloadReaction();
  const reactions = session.dataset.getReactionsList();
  reactions[session.index] = reaction;
  putDataset(session.fileName, session.dataset);
  ord.uploads.putAll(session.fileName);
}
/**
 * Writes the current reaction to disk.
 */
Writes the current reaction to disk.
Writes the current reaction to disk .
function commit() {
  if (!session.dataset) {
    return;
  }
  const reaction = unloadReaction();
  const reactions = session.dataset.getReactionsList();
  reactions[session.index] = reaction;
  putDataset(session.fileName, session.dataset);
  ord.uploads.putAll(session.fileName);
}
function commit ( ) { if ( ! session . dataset ) { return ; } const reaction = unloadReaction ( ) ; const reactions = session . dataset . getReactionsList ( ) ; reactions [ session . index ] = reaction ; putDataset ( session . fileName , session . dataset ) ; ord . uploads . putAll ( session . fileName ) ; }
Writes the current reaction to disk.
Writes the current reaction to disk .
// Do nothing when there is no Dataset; e.g. when viewing reactions by ID.