Skip to content

unusual power level structure makes it impossible to change levels #10212

Closed
@grinapo

Description

@grinapo

Description

Having non-standard power levels seem to make it impossible to change them on occasions:

Uncaught TypeError: Cannot create property 'room' on number '150'
    at Object.r._onPowerLevelsChanged [as onChange] (RolesRoomSettingsTab.js:230)
    at t.onCustomBlur (PowerSelector.js:129)
    at e.onBlur (Field.js:106)
    at Object.o (ReactErrorUtils.js:24)
    at s (EventPluginUtils.js:83)
    at Object.executeDispatchesInOrder (EventPluginUtils.js:106)
    at d (EventPluginHub.js:41)
    at p (EventPluginHub.js:52)
    at Array.forEach (<anonymous>)
    at e.exports (forEachAccumulated.js:22)
    at Object.processEventQueue (EventPluginHub.js:250)
    at ReactEventEmitterMixin.js:15
    at Object.handleTopLevel [as _handleTopLevel] (ReactEventEmitterMixin.js:25)
    at p (ReactEventListener.js:70)
    at Object.batchedUpdates (ReactDefaultBatchingStrategy.js:58)
    at Object.batchedUpdates (ReactUpdates.js:95)

Steps to reproduce

  • create a room with 1000+ levels
  • try to change them (using custom)
  • you can't

Log: sent/not sent? yes

Version information

  • Platform: web (in-browser) or desktop? web

For the web app:

  • Browser: Chromium 74.0
  • OS: debian/sid
  • URL: riot.grin.hu, latest release version

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions