Skip to content

Commit

Permalink
Fix odd type error
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 19, 2023
1 parent 7fec7c8 commit b00a573
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ftbot/TradeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ const rows = computed(() => {
return props.trades.length;
});
const tableFields = ref<TableField[]>([]);
// This using "TableField[]" below causes
// Error: Debug Failure. No error for last overload signature
const tableFields = ref<any[]>([]);

Check warning on line 148 in src/components/ftbot/TradeList.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 16)

Unexpected any. Specify a different type

Check warning on line 148 in src/components/ftbot/TradeList.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 18)

Unexpected any. Specify a different type

Check warning on line 148 in src/components/ftbot/TradeList.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 19)

Unexpected any. Specify a different type

Check warning on line 148 in src/components/ftbot/TradeList.vue

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 20)

Unexpected any. Specify a different type
onMounted(() => {
tableFields.value = [
Expand All @@ -167,7 +169,6 @@ onMounted(() => {
{
key: 'profit',
label: props.activeTrades ? 'Current profit %' : 'Profit %',
formatter: (value: unknown, key?: string, item?: unknown) => {
if (!item) {
return '';
Expand Down

0 comments on commit b00a573

Please sign in to comment.