@nrbx/topbar-components 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,10 +19,16 @@ local function sortByDock(children)
19
19
  if child == nil then
20
20
  return nil
21
21
  end
22
- if React.isValidElement(child) and (child.props).dock == "Center" then
22
+ local props = child.props
23
+ local _dock = props
24
+ if _dock ~= nil then
25
+ _dock = _dock.dock
26
+ end
27
+ local dock = _dock
28
+ if dock == "Center" then
23
29
  center[ci + 1] = child
24
30
  ci += 1
25
- elseif React.isValidElement(child) and (child.props).dock == "Right" then
31
+ elseif dock == "Right" then
26
32
  right[ri + 1] = child
27
33
  ri += 1
28
34
  else
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrbx/topbar-components",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "out/init.lua",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",