Skip to content

Commit

Permalink
Merge branch 'master' of github.com:s-h-a-d-o-w/alfc
Browse files Browse the repository at this point in the history
  • Loading branch information
s-h-a-d-o-w committed Mar 31, 2024
2 parents f43f6b9 + 528bf1a commit 36a54cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/containers/FanTableEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ export function FanTableEditor({ onChange, value }: Props) {
<td>
<StyledButton
type="button"
disabled={value.length === 1}
style={
value.length === 1
? {
cursor: 'default',
opacity: '0.4',
}
: {}
}
onClick={() => {
const nextValue = cloneDeep(value);
nextValue.splice(idx, 1);
Expand Down

0 comments on commit 36a54cf

Please sign in to comment.