Has anyone managed to fix the faction permissions system on Onyx? I need a fully working script with changing permissions for ranks, I don't want to cut it.
Part of the script causes the GUI disappearing problem, specifically the condition this.getRank().rights.includes(el)
Part of the script causes the GUI disappearing problem, specifically the condition this.getRank().rights.includes(el)
<div className={classNames("tablet-fraction-rang-editor-switcher-button", {
'tablet-fraction-rang-editor-switcher-button__active': this.getRank().rights.includes(el)
})} onClick={() => this.changeRight(el)}>