mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
Updated Dash
This commit is contained in:
parent
0a8d80196f
commit
ac7ed553ab
3 changed files with 3 additions and 8 deletions
|
|
@ -55,12 +55,7 @@ export function DashboardEdit({ teamId }: { teamId: string }) {
|
|||
const orderedWebsites = [...ordered];
|
||||
const [removed] = orderedWebsites.splice(source.index, 1);
|
||||
orderedWebsites.splice(destination.index, 0, removed);
|
||||
|
||||
setOrder(
|
||||
orderedWebsites
|
||||
.map(website => website?.id)
|
||||
.filter((id): id is string => typeof id === 'string'),
|
||||
);
|
||||
setOrder(orderedWebsites.filter(website => website?.id).map(website => website.id));
|
||||
setEdited(true);
|
||||
}
|
||||
function handleActiveWebsites(id: string) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export function DashboardPage() {
|
|||
<>
|
||||
{editing && <DashboardEdit teamId={teamId} />}
|
||||
{!editing &&
|
||||
(websiteActive.length != 0 ? (
|
||||
(websiteActive.length !== 0 ? (
|
||||
<>
|
||||
<WebsiteChartList
|
||||
websites={result?.data as any}
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ export const messages = defineMessages({
|
|||
},
|
||||
noWebsitesToggled: {
|
||||
id: 'message.no-websites-toggled',
|
||||
defaultMessage: 'You have not toggled any websites',
|
||||
defaultMessage: 'You have not toggled any websites.',
|
||||
},
|
||||
|
||||
noTeamWebsites: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue