Don't throttle Trades list to allow update when bot-comparison selection changes

closes #1282
This commit is contained in:
Matthias 2023-05-28 08:47:47 +02:00
parent 6fe56a857e
commit 6f0ae677df

View File

@ -27,7 +27,7 @@ import {
Trade, Trade,
} from '@/types'; } from '@/types';
import { watchThrottled } from '@vueuse/core'; import { watchThrottled } from '@vueuse/core';
import { computed, onMounted, ref } from 'vue'; import { computed, onMounted, ref, watch } from 'vue';
use([ use([
BarChart, BarChart,
@ -258,12 +258,11 @@ watchThrottled(
}, },
{ throttle: 60 * 1000 }, { throttle: 60 * 1000 },
); );
watchThrottled( watch(
() => props.trades, () => props.trades,
() => { () => {
updateChart(); updateChart();
}, },
{ throttle: 60 * 1000 },
); );
</script> </script>