scrapix icon indicating copy to clipboard operation
scrapix copied to clipboard

Where is `only_type` located in the schema settings option

Open bidoubiwa opened this issue 1 year ago • 1 comments

Previously the only_type was fetched in this.config.schema_config?.only_type, nonetheless, using typescript it appears the config is located in this.config.schema?.only_type.

This should be tested.

if (this.config.schema?.only_type) {
      // TODO: Might be an error, should be `schema.only_type` and not `schema_config.only_type`
      // Leaving old code in comment in case it is not an error
      // if (data["@type"] !== this.config.schema_config?.only_type) return;
      if (data["@type"] !== this.config.schema?.only_type) return;
    }

bidoubiwa avatar Jun 21 '23 16:06 bidoubiwa