Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: キャラクター以外のシートの編集画面でエラーが発生していたのを修正 #145

Conversation

ViVi-shark
Copy link
Contributor

現象

キャラクターをあつかわないシートの編集画面において、 JS で例外が発生していた。

image

該当するシート:

  • [SW2] アイテムシート
  • [SW2] 魔法/神格/流派シート
  • [MS] クランシート

原因

dd9c844#diff-0a51076b029b7a29306292ed0366383c8e7318ce6536e87d464ac5cb8dfc60fc において、 edit.js (つまりキャラクター以外のシートでも実行されるスクリプト)内で、無条件に setSortable('unitStatus', '#unit-status-optional', 'tr'); が実行されていた。

対処方法

#unit-status-optional が存在する場合にのみ実行するようにした。

例: SW2 のアイテムシート、 MS のクランシートなど
@ViVi-shark
Copy link
Contributor Author

3cee46c で解消されたはずなのでClose

@ViVi-shark ViVi-shark closed this May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant