Merge remote-tracking branch 'origin/master' into task/rename-cmd-file-to-work-on-windows

This commit is contained in:
Dillon
2023-12-09 14:11:59 -05:00
3 changed files with 14 additions and 13 deletions

View File

@@ -188,14 +188,14 @@ async def read_graph(action_type, send_json, project_uuid):
'elements': blueprint.pop('elements'),
}
nodes.append(blueprint)
if len(edges[0]) >= 1:
[edges_data.append({
'id': f"{i}",
'source': f"{e[2]['from'].id}",
'target': f"{e[3]['to'].id}",
'label': e[1][T.label],
'type': 'float'
}) for i, e in enumerate(chunks(edges[0], 4))]
if len(edges[0]) >= 1:
[edges_data.append({
'id': f"{i}",
'source': f"{e[2]['from'].id}",
'target': f"{e[3]['to'].id}",
'label': e[1][T.label],
'type': 'float'
}) for i, e in enumerate(chunks(edges[0], 4))]
await send_json({
'action': 'addInitialLoad',
'nodes': nodes,

View File

@@ -9,7 +9,7 @@ export default function EntitiesPanel({
isLoading,
isError,
isSuccess,
refreshAllEntities,
refetchEntities,
}: JSONObject) {
const [showFavoriteEntities, setShowFavoriteEntities] = useState<boolean>(true);
const [showEntities, setShowEntities] = useState(true);
@@ -32,7 +32,7 @@ export default function EntitiesPanel({
const updateEntityOnBookmark = async (hid: string) => {
await updateEntityIsFavorite({ hid })
refreshAllEntities()
refetchEntities()
}
return (

View File

@@ -64,7 +64,7 @@ export default function DashboardPage() {
isLoading,
isError,
isSuccess,
refetch: refreshAllEntities,
refetch: refetchEntities,
} = useGetEntitiesQuery({ skip: 0, limit: 50 })
const scrollGraphs = ({ skip, limit, favoriteSkip, favoriteLimit }: ScrollGraphs) => {
@@ -153,7 +153,8 @@ export default function DashboardPage() {
isLoading={isLoading}
isError={isError}
isSuccess={isSuccess}
updateEntities={refreshAllEntities}
refetchEntities={refetchEntities}
/>
</Tab.Panel>
<Tab.Panel className={styles["tab-panel"]}>
@@ -196,7 +197,7 @@ export default function DashboardPage() {
refreshAllGraphs={async () => await refetchGraphs()}
/>
<CreateEntityModal
refreshAllEntities={async () => await refreshAllEntities()}
refreshAllEntities={async () => await refetchEntities()}
cancelCreateRef={cancelCreateEntityRef}
isOpen={showCreateEntityModal}
closeModal={() => setShowCreateEntityModal(false)}